Part Number Hot Search : 
1N914 2622940 MBT3904 GCF2S AP1702FW WSD705 LPC2104 APT15
Product Description
Full Text Search
 

To Download LPC67 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1. general description the lpc1768/67/66/65/64 are arm cortex-m 3 based microcontrollers for embedded applications featuring a high level of integration and low power consumption. the arm cortex-m3 is a next generation core that offe rs system enhancements such as enhanced debug features and a higher level of support block integration. the lpc1768/67/66/65/64 operate at cpu fr equencies of up to 100 mhz. the arm cortex-m3 cpu incorporates a 3-stage pipe line and uses a harvar d architecture with separate local instruction and data buses as well as a third bus for peripherals. the arm cortex-m3 cpu also includes an internal prefetch unit that supports speculative branching. the peripheral complement of the lpc1768/67/ 66/65/64 includes up to 512 kb of flash memory, up to 64 kb of data memory, ether net mac, usb device/host/otg interface, 8-channel general purpose dm a controller, 4 uarts, 2 ca n channels, 2 ssp controllers, spi interface, 3 i 2 c-bus interfaces, 2-input plus 2-output i 2 s-bus interface, 8-channel 12-bit adc, 10-bit dac, motor control pwm, quadrature encoder interface, four general purpose timers, 6-output general purpose pwm, ultra-low power real-time clock (rtc) with separate battery supply, and up to 70 general purpose i/o pins. the lpc1768/67/66/65/64 are pin-compatible to the 100-pin lpc236x arm7-based microcontroller series. 2. features ? arm cortex-m3 processor, running at fre quencies of up to 100 mhz. a memory protection unit (mpu) supporti ng eight regions is included. ? arm cortex-m3 built-in nested vector ed interrupt controller (nvic). ? up to 512 kb on-chip flash programming memory. enhanced flash memory accelerator enables high-speed 100 mhz operation with zero wait states. ? in-system programming (isp) and in-application programming (iap) via on-chip bootloader software. ? on-chip sram includes: ? 32/16 kb of sram on the cpu with local code/data bus for high-performance cpu access. ? two/one 16 kb sram blocks with separate access paths for higher throughput. these sram blocks may be used for ether net, usb, and dma memory, as well as for general purpose cpu instruction and data storage. lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontrolle r; up to 512 kb flash and 64 kb sram with ethernet, usb 2.0 host/device/otg, can rev. 03 ? 19 november 2009 product data sheet
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 2 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller ? eight channel general purpose dma cont roller (gpdma) on the ahb multilayer matrix that can be used with ssp, i 2 s-bus, uart, analog-to-digital and digital-to-analog converter peripherals, timer match signals, and for memory-to-memory transfers. ? multilayer ahb matrix interconnect prov ides a separate bus for each ahb master. ahb masters include the cpu, general pu rpose dma controller, ethernet mac, and the usb interface. this interconnect pr ovides communication with no arbitration delays. ? split apb bus allows high throughput with few stalls between the cpu and dma. ? serial interfaces: ? ethernet mac with rmii interface and dedicated dma controller (lpc1768/67/66/64 only). ? usb 2.0 full-speed device/host/otg controller with dedicated dma controller and on-chip phy for device, host, and otg functions (lpc1768/66/65 only). the lpc1764 includes a device controller only. ? four uarts with fractional baud rate generation, internal fifo, and dma support. one uart has modem control i/o and rs-485/eia-485 support, and one uart has irda support. ? can 2.0b controller with two channels. ? spi controller with synchronous, seri al, full duplex communication and programmable data length. ? two ssp controllers with fifo and multi-protocol capab ilities. the ssp interfaces can be used with the gpdma controller. ? three enhanced i 2 c bus interfaces, one with an open-drain output supporting full i 2 c specification and fast mode plus with data rates of 1 mbit/s, two with standard port pins. enhancements include multiple address recognition and monitor mode. ? on the lpc1768/67/66/65 only, i 2 s (inter-ic sound) interface for digital audio input or output, with fractiona l rate control. the i 2 s-bus interface can be used with the gpdma. the i 2 s-bus interface supports 3-wire and 4-wire data transmit and receive as well as master clock input/output. ? other peripherals: ? 70 (100 pin package) general purpos e i/o (gpio) pins with configurable pull-up/down resistors. all gpios support a new, configurable open-drain operating mode. the gpio block is accessed throug h the ahb mulitlayer bus for fast access and located in memory such that it supp orts cortex-m3 bit banding and use by the general purpose dma controller. ? 12-bit analog-to-digital converter (adc) with input multiplexing among eight pins, conversion rates up to 200 khz, and multip le result registers. the 12-bit adc can be used with the gpdma controller. ? 10-bit digital-to-analog converter (dac) with dedicated conversion timer and dma support (lpc1768/67/66/65 only). ? four general purpose timers/counters, with a total of eight capture inputs and ten compare outputs. each timer block has an external count input. specific timer events can be selected to generate dma requests. ? one motor control pwm with suppor t for three-phase motor control. ? quadrature encoder interfac e that can monitor one external quadrature encoder. ? one standard pwm/timer block with external count input.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 3 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller ? rtc with a separate power domain and d edicated rtc oscillator. the rtc block includes 20 bytes of battery-powered backup registers. ? watchdog timer (wdt). the wdt can be clo cked from the internal rc oscillator, the rtc oscillator, or the apb clock. ? arm cortex-m3 system tick timer, incl uding an external clock input option. ? repetitive interrupt timer provides programmable and repeating timed interrupts. ? each peripheral has it s own clock divider for further power savings. ? standard jtag test/ debug interface for compatibility with existing tools. serial wire debug and serial wire trace port options. ? emulation trace module enables non-intrusive, high-speed real-time tracing of instruction execution. ? integrated pmu (power management unit) automatically adjusts internal regulators to minimize power consumption during slee p, deep sleep, power-down, and deep power-down modes. ? four reduced power modes: sleep, deep-sleep, power-down, and deep power-down. ? single 3.3 v power supply (2.4 v to 3.6 v). ? four external interrupt inputs configurable as edge/level sensitive. all pins on port 0 and port 2 can be used as edge sensitive interrupt sources. ? non-maskable inte rrupt (nmi) input. ? clock output function th at can reflect the main oscillator clock, irc clock, rtc clock, cpu clock, and the usb clock. ? the wakeup interrupt controlle r (wic) allows the cpu to automatically wake up from any priority interrupt that can occur while the clocks are stopped in deep sleep, power-down, and deep power-down modes. ? processor wake-up from power-down mode via any interrupt able to operate during power-down mode (includes external interrupts, rtc interrupt, usb activity, ethernet wake-up interrupt, can bus activity, port 0/2 pin interrupt, and nmi). ? brownout detect with separate threshold for interrupt and forced reset. ? power-on reset (por). ? crystal oscillator with an operating range of 1 mhz to 25 mhz. ? 4 mhz internal rc oscillator trimmed to 1 % accuracy that can optionally be used as a system clock. ? pll allows cpu operation up to the maximum cpu rate without the need for a high-frequency crystal. may be r un from the main oscillator, the internal rc oscillator, or the rtc oscillator. ? usb pll for added flexibility. ? code read protection (crp) with different security levels. ? available as 100-pin lqfp package (14 14 1.4 mm). 3. applications ? emetering ? alarm systems ? lighting ? white goods ? industrial networking ? motor control
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 4 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 4. ordering information 4.1 ordering options table 1. ordering information type number package name description version lpc1768fbd100 lqfp100 plastic low profile quad flat package; 100 leads; body 14 14 1.4 mm sot407-1 lpc1767fbd100 lqfp100 plastic low profile quad flat package; 100 leads; body 14 14 1.4 mm sot407-1 lpc1766fbd100 lqfp100 plastic low profile quad flat package; 100 leads; body 14 14 1.4 mm sot407-1 lpc1765fbd100 lqfp100 plastic low profile quad flat package; 100 leads; body 14 14 1.4 mm sot407-1 lpc1764fbd100 lqfp100 plastic low profile quad flat package; 100 leads; body 14 14 1.4 mm sot407-1 table 2. ordering options type number flash total sram ethernet usb can i 2 s dac package lpc1768fbd100 512 kb 64 kb yes device/host/otg 2 yes yes 100 pins lpc1767fbd100 512 kb 64 kb yes no no yes yes 100 pins lpc1766fbd100 256 kb 64 kb yes device/host/otg 2 yes yes 100 pins lpc1765fbd100 256 kb 64 kb no device/host/otg 2 yes yes 100 pins lpc1764fbd100 128 kb 32 kb yes device only 2 no no 100 pins
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 5 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 5. block diagram grey-shaded blocks represent periphera ls with connection to the gpdma. fig 1. block diagram sram 32/64 kb arm cortex-m3 test/debug interface emulation trace module flash accelerator flash 512/256/128 kb dma controller ethernet controller with dma (2) usb host/ device/otg controller with dma (3)(4) i-code bus d-code bus system bus ahb to apb bridge 0 high-speed gpio ahb to apb bridge 1 clock generation, power control, system functions xtal1 xtal2 reset clocks and controls jtag interface debug port usb phy ssp0 uart2/3 i2s (1) i2c2 ri timer timer2/3 external interrupts system control motor control pwm quadrature encoder ssp1 uart0/1 can1/2 (4) i2c0/1 spi0 timer 0/1 wdt pwm1 12-bit adc pin connect gpio interrupt control rtc backup registers 32 khz oscillator apb slave group 1 apb slave group 0 dac (1) rtc power domain lpc1768/67/66/65/64 master master master 002aad944 slave slave slave slave slave rom slave multilayer ahb matrix p0 to p4 sda2 scl2 sck0 ssel0 miso0 mosi0 sck1 ssel1 miso1 mosi1 rxd2/3 txd2/3 pha, phb index eint[3:0] aout mcoa[2:0] mcob[2:0] mci[2:0] mcabort 4 mat2 2 mat3 2 cap2 2 cap3 3 i2srx 3 i2stx tx_mclk rx_mclk rtcx1 rtcx2 vbat pwm1[7:0] 2 mat0/1 2 cap0/1 rd1/2 td1/2 sda0/1 scl0/1 ad0[7:0] sck/ssel mosi/miso 8 uart1 rxd0/txd0 p0, p2 pcap1[1:0] rmii pins usb pins clkout mpu (1) lpc1768/67/66/65 only (2) lpc1768/67/66/64 only (3) lpc1764 usb device only (4) lpc1768/66/65/64 only
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 6 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 6. pinning information 6.1 pinning 6.2 pin description fig 2. pin configuration lqfp100 package lpc176xfbd100 75 26 50 100 76 51 1 25 002aad94 5 table 3. pin description symbol pin type description p0[0] to p0[31] i/o port 0: port 0 is a 32-bit i/o port with individual direction controls for each bit. the operation of port 0 pins depends upon the pin function selected via the pin connect block. pins 12, 13, 14, and 31 of this port are not available. p0[0]/rd1/txd3/ sda1 46 [1] i/o p0[0] ? general purpose digital input/output pin. i rd1 ? can1 receiver input. (lpc1768/66/65/64 only). o txd3 ? transmitter output for uart3. i/o sda1 ? i 2 c1 data input/output. (this is not an i 2 c-bus compliant open-drain pin). p0[1]/td1/rxd3/ scl1 47 [1] i/o p0[1] ? general purpose digital input/output pin. o td1 ? can1 transmitter output. (lpc1768/66/65/64 only). i rxd3 ? receiver input for uart3. i/o scl1 ? i 2 c1 clock input/output. (this is not an i 2 c-bus compliant open-drain pin). p0[2]/txd0/ad0[7] 98 [2] i/o p0[2] ? general purpose digital input/output pin. o txd0 ? transmitter output for uart0. i ad0[7] ? a/d converter 0, input 7. p0[3]/rxd0/ad0[6] 99 [2] i/o p0[3] ? general purpose digital input/output pin. i rxd0 ? receiver input for uart0. i ad0[6] ? a/d converter 0, input 6. p0[4]/ i2srx_clk/ rd2/cap2[0] 81 [1] i/o p0[4] ? general purpose digital input/output pin. i/o i2srx_clk ? receive clock. it is driven by th e master and received by the slave. corresponds to the signal sck in the i 2 s-bus specification . (lpc1768/67/66/65 only). i rd2 ? can2 receiver input. (lpc1768/66/65/64 only). i cap2[0] ? capture input for timer 2, channel 0.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 7 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller p0[5]/ i2srx_ws/ td2/cap2[1] 80 [1] i/o p0[5] ? general purpose digital input/output pin. i/o i2srx_ws ? receive word select. it is driven by the master an d received by the slave. corresponds to the signal ws in the i 2 s-bus specification . (lpc1768/67/66/65 only). o td2 ? can2 transmitter output. (lpc1768/66/65/64 only). i cap2[1] ? capture input for timer 2, channel 1. p0[6]/ i2srx_sda/ ssel1/mat2[0] 79 [1] i/o p0[6] ? general purpose digital input/output pin. i/o i2srx_sda ? receive data. it is driven by the transmitter and read by the receiver. corresponds to the signal sd in the i 2 s-bus specification . (lpc1768/67/66/65 only). i/o ssel1 ? slave select for ssp1. o mat2[0] ? match output for timer 2, channel 0. p0[7]/ i2stx_clk/ sck1/mat2[1] 78 [1] i/o p0[7] ? general purpose digital input/output pin. i/o i2stx_clk ? transmit clock. it is driven by the master and received by the slave. corresponds to the signal sck in the i 2 s-bus specification . (lpc1768/67/66/65 only). i/o sck1 ? serial clock for ssp1. o mat2[1] ? match output for timer 2, channel 1. p0[8]/ i2stx_ws/ miso1/mat2[2] 77 [1] i/o p0[8] ? general purpose digital input/output pin. i/o i2stx_ws ? transmit word select. it is driven by the master and received by the slave. corresponds to the signal ws in the i 2 s-bus specification . (lpc1768/67/66/65 only). i/o miso1 ? master in slave out for ssp1. o mat2[2] ? match output for timer 2, channel 2. p0[9]/ i2stx_sda/ mosi1/mat2[3] 76 [1] i/o p0[9] ? general purpose digital input/output pin. i/o i2stx_sda ? transmit data. it is driven by the transmitter and read by the receiver. corresponds to the signal sd in the i 2 s-bus specification . (lpc1768/67/66/65 only). i/o mosi1 ? master out slave in for ssp1. o mat2[3] ? match output for timer 2, channel 3. p0[10]/txd2/ sda2/mat3[0] 48 [1] i/o p0[10] ? general purpose digital input/output pin. o txd2 ? transmitter output for uart2. i/o sda2 ? i 2 c2 data input/output (this is not an open-drain pin). o mat3[0] ? match output for timer 3, channel 0. p0[11]/rxd2/ scl2/mat3[1] 49 [1] i/o p0[11] ? general purpose digital input/output pin. i rxd2 ? receiver input for uart2. i/o scl2 ? i 2 c2 clock input/output (this is not an open-drain pin). o mat3[1] ? match output for timer 3, channel 1. p0[15]/txd1/ sck0/sck 62 [1] i/o p0[15] ? general purpose digital input/output pin. o txd1 ? transmitter output for uart1. i/o sck0 ? serial clock for ssp0. i/o sck ? serial clock for spi. table 3. pin description ?continued symbol pin type description
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 8 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller p0[16]/rxd1/ ssel0/ssel 63 [1] i/o p0[16] ? general purpose digital input/output pin. i rxd1 ? receiver input for uart1. i/o ssel0 ? slave select for ssp0. i/o ssel ? slave select for spi. p0[17]/cts1/ miso0/miso 61 [1] i/o p0[17] ? general purpose digital input/output pin. i cts1 ? clear to send input for uart1. i/o miso0 ? master in slave out for ssp0. i/o miso ? master in slave out for spi. p0[18]/dcd1/ mosi0/mosi 60 [1] i/o p0[18] ? general purpose digital input/output pin. i dcd1 ? data carrier detect input for uart1. i/o mosi0 ? master out slave in for ssp0. i/o mosi ? master out slave in for spi. p0[19]/dsr1/ sda1 59 [1] i/o p0[19] ? general purpose digital input/output pin. i dsr1 ? data set ready input for uart1. i/o sda1 ? i 2 c1 data input/output (this is not an i 2 c-bus compliant open-drain pin). p0[20]/dtr1/scl1 58 [1] i/o p0[20] ? general purpose digital input/output pin. o dtr1 ? data terminal ready output for uart1. can also be configured to be an rs-485/eia-485 output enable signal. i/o scl1 ? i 2 c1 clock input/output (this is not an i 2 c-bus compliant open-drain pin). p0[21]/ri1/rd1 57 [1] i/o p0[21] ? general purpose digital input/output pin. i ri1 ? ring indicator input for uart1. i rd1 ? can1 receiver input. (lpc1768/66/65/64 only). p0[22]/rts1/td1 56 [1] i/o p0[22] ? general purpose digital input/output pin. o rts1 ? request to send output for uart1. can also be configured to be an rs-485/eia-485 output enable signal. o td1 ? can1 transmitter output. (lpc1768/66/65/64 only). p0[23]/ad0[0]/ i2srx_clk/ cap3[0] 9 [2] i/o p0[23] ? general purpose digital input/output pin. i ad0[0] ? a/d converter 0, input 0. i/o i2srx_clk ? receive clock. it is driven by th e master and received by the slave. corresponds to the signal sck in the i 2 s-bus specification . (lpc1768/67/66/65 only). i cap3[0] ? capture input for timer 3, channel 0. p0[24]/ad0[1]/ i2srx_ws/ cap3[1] 8 [2] i/o p0[24] ? general purpose digital input/output pin. i ad0[1] ? a/d converter 0, input 1. i/o i2srx_ws ? receive word select. it is driven by the master an d received by the slave. corresponds to the signal ws in the i 2 s-bus specification . (lpc1768/67/66/65 only). i cap3[1] ? capture input for timer 3, channel 1. table 3. pin description ?continued symbol pin type description
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 9 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller p0[25]/ad0[2]/ i2srx_sda/ txd3 7 [2] i/o p0[25] ? general purpose digital input/output pin. i ad0[2] ? a/d converter 0, input 2. i/o i2srx_sda ? receive data. it is driven by the transmitter and read by the receiver. corresponds to the signal sd in the i 2 s-bus specification . (lpc1768/67/66/65 only). o txd3 ? transmitter output for uart3. p0[26]/ad0[3]/ aout/rxd3 6 [3] i/o p0[26] ? general purpose digital input/output pin. i ad0[3] ? a/d converter 0, input 3. o aout ? dac output (lpc1768/67/66/65 only). i rxd3 ? receiver input for uart3. p0[27]/sda0/ usb_sda 25 [4] i/o p0[27] ? general purpose digital input/outp ut pin. output is open-drain. i/o sda0 ? i 2 c0 data input/output. open-drain output (for i 2 c-bus compliance). i/o usb_sda ? usb port i 2 c serial data (otg transceiver, lpc1768/66/65 only). p0[28]/scl0/ usb_scl 24 [4] i/o p0[28] ? general purpose digital input/outp ut pin. output is open-drain. i/o scl0 ? i 2 c0 clock input/output. open -drain output (for i 2 c-bus compliance). i/o usb_scl ? usb port i 2 c serial clock (otg transceiver, lpc1768/66/65 only). p0[29]/usb_d+ 29 [5] i/o p0[29] ? general purpose digital input/output pin. i/o usb_d+ ? usb bidirectional d+ line. (lpc1768/66/65/64 only). p0[30]/usb_d ? 30 [5] i/o p0[30] ? general purpose digital input/output pin. i/o usb_d ? ? usb bidirectional d ? line. (lpc1768/66/65/64 only). p1[0] to p1[31] i/o port 1: port 1 is a 32-bit i/o port with individual direction controls for each bit. the operation of port 1 pins depends upon the pin function selected via the pin connect block. pins 2, 3, 5, 6, 7, 11, 12, and 13 of this port are not available. p1[0]/ enet_txd0 95 [1] i/o p1[0] ? general purpose digital input/output pin. o enet_txd0 ? ethernet transmit data 0. (lpc1768/67/66/64 only). p1[1]/ enet_txd1 94 [1] i/o p1[1] ? general purpose digital input/output pin. o enet_txd1 ? ethernet transmit data 1. (lpc1768/67/66/64 only). p1[4]/ enet_tx_en 93 [1] i/o p1[4] ? general purpose digital input/output pin. o enet_tx_en ? ethernet transmit data enable. (lpc1768/67/66/64 only). p1[8]/ enet_crs 92 [1] i/o p1[8] ? general purpose digital input/output pin. i enet_crs ? ethernet carrier sense. (lpc1768/67/66/64 only). p1[9]/ enet_rxd0 91 [1] i/o p1[9] ? general purpose digital input/output pin. i enet_rxd0 ? ethernet receive data. (lpc1768/67/66/64 only). p1[10]/ enet_rxd1 90 [1] i/o p1[10] ? general purpose digital input/output pin. i enet_rxd1 ? ethernet receive data. (lpc1768/67/66/64 only). p1[14]/ enet_rx_er 89 [1] i/o p1[14] ? general purpose digital input/output pin. i enet_rx_er ? ethernet receive error. (lpc1768/67/66/64 only). p1[15]/ enet_ref_clk 88 [1] i/o p1[15] ? general purpose digital input/output pin. i enet_ref_clk ? ethernet reference clo ck. (lpc1768/67/66/64 only). p1[16]/ enet_mdc 87 [1] i/o p1[16] ? general purpose digital input/output pin. o enet_mdc ? ethernet miim clock (lpc1768/67/66/64 only). table 3. pin description ?continued symbol pin type description
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 10 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller p1[17]/ enet_mdio 86 [1] i/o p1[17] ? general purpose digital input/output pin. i/o enet_mdio ? ethernet miim data input and output. (lpc1768/67/66/64 only). p1[18]/ usb_up_led/ pwm1[1]/ cap1[0] 32 [1] i/o p1[18] ? general purpose digital input/output pin. o usb_up_led ? usb goodlink led indicator. it is low when device is configured (non-control endpoints enabled). it is high when the device is not configured or during global susp end. (lpc1768/66/65/64 only). o pwm1[1] ? pulse width modulator 1, channel 1 output. i cap1[0] ? capture input for timer 1, channel 0. p1[19]/mcoa0/ usb_ppwr cap1[1] 33 [1] i/o p1[19] ? general purpose digital input/output pin. o mcoa0 ? motor control pwm channel 0, output a. o usb_ppwr ? port power enable signal for usb port. (lpc1768/66/65 only). i cap1[1] ? capture input for timer 1, channel 1. p1[20]/mci0/ pwm1[2]/sck0 34 [1] i/o p1[20] ? general purpose digital input/output pin. i mci0 ? motor control pwm channel 0, input. also quadrature encoder interface pha input. o pwm1[2] ? pulse width modulator 1, channel 2 output. i/o sck0 ? serial clock for ssp0. p1[21]/ mcabort / pwm1[3]/ ssel0 35 [1] i/o p1[21] ? general purpose digital input/output pin. o mcabort ? motor control pwm, low-active fast abort. o pwm1[3] ? pulse width modulator 1, channel 3 output. i/o ssel0 ? slave select for ssp0. p1[22]/mcob0/ usb_pwrd/ mat1[0] 36 [1] i/o p1[22] ? general purpose digital input/output pin. o mcob0 ? motor control pwm channel 0, output b. i usb_pwrd ? power status for usb port (host power switch, lpc1768/66/65 only). o mat1[0] ? match output for timer 1, channel 0. p1[23]/mci1/ pwm1[4]/miso0 37 [1] i/o p1[23] ? general purpose digital input/output pin. i mci1 ? motor control pwm channel 1, input. also quadrature encoder interface phb input. o pwm1[4] ? pulse width modulator 1, channel 4 output. i/o miso0 ? master in slave out for ssp0. p1[24]/mci2/ pwm1[5]/mosi0 38 [1] i/o p1[24] ? general purpose digital input/output pin. i mci2 ? motor control pwm channel 2, input. also quadrature encoder interface index input. o pwm1[5] ? pulse width modulator 1, channel 5 output. i/o mosi0 ? master out slave in for ssp0. p1[25]/mcoa1/ mat1[1] 39 [1] i/o p1[25] ? general purpose digital input/output pin. o mcoa1 ? motor control pwm channel 1, output a. o mat1[1] ? match output for timer 1, channel 1. table 3. pin description ?continued symbol pin type description
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 11 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller p1[26]/mcob1/ pwm1[6]/cap0[0] 40 [1] i/o p1[26] ? general purpose digital input/output pin. o mcob1 ? motor control pwm channel 1, output b. o pwm1[6] ? pulse width modulator 1, channel 6 output. i cap0[0] ? capture input for timer 0, channel 0. p1[27]/clkout / usb_ovrcr / cap0[1] 43 [1] i/o p1[27] ? general purpose digital input/output pin. o clkout ? clock output pin. i usb_ovrcr ? usb port over-current status. (lpc1768/66/65 only). i cap0[1] ? capture input for timer 0, channel 1. p1[28]/mcoa2/ pcap1[0]/ mat0[0] 44 [1] i/o p1[28] ? general purpose digital input/output pin. o mcoa2 ? motor control pwm channel 2, output a. i pcap1[0] ? capture input for pwm1, channel 0. o mat0[0] ? match output for timer 0, channel 0. p1[29]/mcob2/ pcap1[1]/ mat0[1] 45 [1] i/o p1[29] ? general purpose digital input/output pin. o mcob2 ? motor control pwm channel 2, output b. i pcap1[1] ? capture input for pwm1, channel 1. o mat0[1] ? match output for timer 0, channel 1. p1[30]/v bus / ad0[4] 21 [2] i/o p1[30] ? general purpose digital input/output pin. i v bus ? monitors the presence of usb bus power. (lpc1768/66/65/64 only). note: this signal must be hi gh for usb reset to occur. i ad0[4] ? a/d converter 0, input 4. p1[31]/sck1/ ad0[5] 20 [2] i/o p1[31] ? general purpose digital input/output pin. i/o sck1 ? serial clock for ssp1. i ad0[5] ? a/d converter 0, input 5. p2[0] to p2[31] i/o port 2: port 2 is a 32-bit i/o port with individual direction controls for each bit. the operation of port 2 pins depends upon the pin function selected via the pin connect block. pins 14 through 31 of this port are not available. p2[0]/pwm1[1]/ txd1 75 [1] i/o p2[0] ? general purpose digital input/output pin. o pwm1[1] ? pulse width modulator 1, channel 1 output. o txd1 ? transmitter output for uart1. p2[1]/pwm1[2]/ rxd1 74 [1] i/o p2[1] ? general purpose digital input/output pin. o pwm1[2] ? pulse width modulator 1, channel 2 output. i rxd1 ? receiver input for uart1. p2[2]/pwm1[3]/ cts1/ tracedata[3] 73 [1] i/o p2[2] ? general purpose digital input/output pin. o pwm1[3] ? pulse width modulator 1, channel 3 output. i cts1 ? clear to send input for uart1. o tracedata[3] ? trace data, bit 3. p2[3]/pwm1[4]/ dcd1/ tracedata[2] 70 [1] i/o p2[3] ? general purpose digital input/output pin. o pwm1[4] ? pulse width modulator 1, channel 4 output. i dcd1 ? data carrier detect input for uart1. o tracedata[2] ? trace data, bit 2. table 3. pin description ?continued symbol pin type description
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 12 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller p2[4]/pwm1[5]/ dsr1/ tracedata[1] 69 [1] i/o p2[4] ? general purpose digital input/output pin. o pwm1[5] ? pulse width modulator 1, channel 5 output. i dsr1 ? data set ready input for uart1. o tracedata[1] ? trace data, bit 1. p2[5]/pwm1[6]/ dtr1/ tracedata[0] 68 [1] i/o p2[5] ? general purpose digital input/output pin. o pwm1[6] ? pulse width modulator 1, channel 6 output. o dtr1 ? data terminal ready output for uart1. can also be configured to be an rs-485/eia-485 output enable signal. o tracedata[0] ? trace data, bit 0. p2[6]/pcap1[0]/ ri1/traceclk 67 [1] i/o p2[6] ? general purpose digital input/output pin. i pcap1[0] ? capture input for pwm1, channel 0. i ri1 ? ring indicator input for uart1. o traceclk ? trace clock. p2[7]/rd2/ rts1 66 [1] i/o p2[7] ? general purpose digital input/output pin. i rd2 ? can2 receiver input. (lpc1768/66/65/64 only). o rts1 ? request to send output for uart1. can also be configured to be an rs-485/eia-485 output enable signal. p2[8]/td2/ txd2 65 [1] i/o p2[8] ? general purpose digital input/output pin. o td2 ? can2 transmitter output. (lpc1768/66/65/64 only). o txd2 ? transmitter output for uart2. p2[9]/ usb_connect/ rxd2 64 [1] i/o p2[9] ? general purpose digital input/output pin. o usb_connect ? signal used to switch an external 1.5 k resistor under software control. used with the softco nnect usb feature. (lpc1768/66/65/64 only). i rxd2 ? receiver input for uart2. p2[10]/ eint0 /nmi 53 [6] i/o p2[10] ? general purpose digital input/output pin. note: low on this pin while reset is low forces on-chip bootloader to take over control of the part after a reset. i eint0 ? external interrupt 0 input. i nmi ? non-maskable interrupt input. p2[11]/ eint1 / i2stx_clk 52 [6] i/o p2[11] ? general purpose digital input/output pin. i eint1 ? external interrupt 1 input. i/o i2stx_clk ? transmit clock. it is driven by the master and received by the slave. corresponds to the signal sck in the i 2 s-bus specification . (lpc1768/67/66/65 only). p2[12]/ eint2 / i2stx_ws 51 [6] i/o p2[12] ? general purpose digital input/output pin. i eint2 ? external interrupt 2 input. i/o i2stx_ws ? transmit word select. it is driven by the master and received by the slave. corresponds to the signal ws in the i 2 s-bus specification . (lpc1768/67/66/65 only). table 3. pin description ?continued symbol pin type description
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 13 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller p2[13]/ eint3 / i2stx_sda 50 [6] i/o p2[13] ? general purpose digital input/output pin. i eint3 ? external interrupt 3 input. i/o i2stx_sda ? transmit data. it is driven by the transmitter and read by the receiver. corresponds to the signal sd in the i 2 s-bus specification . (lpc1768/67/66/65 only). p3[0] to p3[31] i/o port 3: port 3 is a 32-bit i/o port with individual direction controls for each bit. the operation of port 3 pins depends upon the pin function selected via the pin connect block. pins 0 through 24, and 27 through 31 of this port are not available. p3[25]/mat0[0]/ pwm1[2] 27 [1] i/o p3[25] ? general purpose digital input/output pin. o mat0[0] ? match output for timer 0, channel 0. o pwm1[2] ? pulse width modulator 1, output 2. p3[26]/stclk/ mat0[1]/pwm1[3] 26 [1] i/o p3[26] ? general purpose digital input/output pin. i stclk ? system tick timer clock input. o mat0[1] ? match output for timer 0, channel 1. o pwm1[3] ? pulse width modulator 1, output 3. p4[0] to p4[31] i/o port 4: port 4 is a 32-bit i/o port with individual direction controls for each bit. the operation of port 4 pins depends upon the pin function selected via the pin connect block. pins 0 through 27, 30, and 31 of this port are not available. p4[28]/rx_mclk/ mat2[0]/txd3 82 [1] i/o p4[28] ? general purpose digital input/output pin. i rx_mclk ? i 2 s receive master clock. (lpc1768/67/66/65 only). o mat2[0] ? match output for timer 2, channel 0. o txd3 ? transmitter output for uart3. p4[29]/tx_mclk/ mat2[1]/rxd3 85 [1] i/o p4[29] ? general purpose digital input/output pin. i tx_mclk ? i 2 s transmit master clock. (lpc1768/67/66/65 only). o mat2[1] ? match output for timer 2, channel 1. i rxd3 ? receiver input for uart3. tdo/swo 1 [1] o tdo ? test data out for jtag interface. o swo ? serial wire trace output. tdi 2 [1] i tdi ? test data in for jtag interface. tms/swdio 3 [1] i tms ? test mode select for jtag interface. i/o swdio ? serial wire debug data input/output. trst 4 [1] i trst ? test reset for jtag interface. tck/swdclk 5 [1] i tck ? test clock for jtag interface. i swdclk ? serial wire clock. rtck 100 [1] i/o rtck ? jtag interface control signal. rstout 14 o rstout ? this is a 3.3 v pin. low on this pin indicates the microcontroller being in reset state. reset 17 [7] i external reset input: a low on this pin resets the device, causing i/o ports and peripherals to take on their default states, and processor execution to begin at address 0. ttl with hysteresis, 5 v tolerant. xtal1 22 [8] i input to the oscillator circuit and internal clock generator circuits. xtal2 23 [8] o output from the oscillator amplifier. rtcx1 16 [8] i input to the rtc oscillator circuit. table 3. pin description ?continued symbol pin type description
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 14 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller [1] 5 v tolerant pad providing digital i/o functions with ttl levels and hysteresis. [2] 5 v tolerant pad providing digital i/o functions (with ttl levels and hysteresis) and analog input. when configured as a adc input, digital section of the pad is disabled and the pin is not 5 v tolerant. [3] 5 v tolerant pad providing digital i/o with ttl levels and hysteresis and analog output function. when configured as the dac outp ut, digital section of the pad is disabled. [4] open-drain 5 v tolerant digital i/o pad, compatible with i 2 c-bus 400 khz specification. this pad requ ires an external pull-up to provide output functionality. when power is sw itched off, this pin connected to the i 2 c-bus is floating and does not disturb the i 2 c lines. open-drain configuration applies to all functions on this pin. [5] pad provides digital i/o and usb functi ons. it is designed in accordance with the usb specification, revision 2.0 (full-speed and low-speed mode only). [6] 5 v tolerant pad with 5 ns glitch filter providing digital i/o functions with ttl le vels and hysteresis. [7] 5 v tolerant pad with 20 ns glitch filter providing digital i/o f unction with ttl leve ls and hysteresis. [8] pad provides special analog functionality. rtcx2 18 [8] o output from the rtc oscillator circuit. v ss 31, 41, 55, 72, 97, 83 [8] i ground: 0 v reference. v ssa 11 [8] i analog ground: 0 v reference. this should nominally be the same voltage as v ss , but should be isolated to minimize noise and error. v dd(3v3) 28, 54, 71, 96 [8] i 3.3 v supply voltage: this is the power supply voltage for the i/o ports. v dd(reg)(3v3) 42, 84 [8] i 3.3 v voltage regulator supply voltage: this is the supply voltage for the on-chip voltage regulator only. v dda 10 [8] i analog 3.3 v pad supply voltage: this should be nominally the same voltage as v dd(3v3) but should be isolated to minimize noise and error. this voltage is used to power the adc and dac. this pin should be tied to 3.3 v if the adc and dac are not used. vrefp 12 [8] i adc positive reference voltage: this should be nominally the same voltage as v dda but should be isolated to minimize noise and error. level on this pin is used as a reference for adc and dac. this pin should be tied to 3.3 v if the adc and dac are not used. vrefn 15 i adc negative reference voltage: this should be nominally the same voltage as v ss but should be isolated to minimize noise and error. level on this pin is used as a reference for adc and dac. vbat 19 [8] i rtc pin power supply: 3.3 v on this pin supplies the power to the rtc peripheral. n.c. 13 - not connected. table 3. pin description ?continued symbol pin type description
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 15 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 7. functional description 7.1 architectural overview remark: in the following, the notation lpc17xx refe rs to all parts: lpc1768/67/66/65/64. the arm cortex-m3 includes th ree ahb-lite buses: the system bus, the i-code bus, and the d-code bus (see figure 1 ). the i-code and d-code core buses are faster than the system bus and are used similarly to tcm interfaces: one bus dedicated for instruction fetch (i-code) and one bus for data access (d-c ode). the use of two core buses allows for simultaneous operations if concurrent operations target different devices. the lpc17xx use a multi-layer ahb matrix to connect the arm cortex-m3 buses and other bus masters to peripherals in a flexible manner that optimizes performance by allowing peripherals that are on different slav es ports of the matrix to be accessed simultaneously by different bus masters. 7.2 arm cortex-m3 processor the arm cortex-m3 is a general purpose, 32-bit microprocessor, which offers high performance and very low power consumptio n. the arm cortex-m3 offers many new features, including a thumb-2 instruction set, low interrupt latenc y, hardware divide, interruptable/continuable multiple load and store instructions, automatic state save and restore for interrupts, tightly integrated interrupt controller with wakeup in terrupt controller, and multiple core buses cap able of simultaneous accesses. pipeline techniques are employed so that all parts of the processing and memory systems can operate continuously. typically, while one instruction is being executed, its successor is being decoded, and a third instruction is being fetched from memory. the arm cortex-m3 processor is described in detail in the cortex-m3 technical reference manual that can be found on official arm website. 7.3 on-chip flash program memory the lpc17xx contain up to 512 kb of on-c hip flash memory. a new two-port flash accelerator maximizes performance for use with the two fast ahb-lite buses. 7.4 on-chip sram the lpc17xx contain a total of 64 kb on-chi p static ram memory. this includes the main 32 kb sram, accessible by the cpu and dma controller on a higher-speed bus, and two additional 16 kb each sram blocks situat ed on a separate slave port on the ahb multilayer matrix. this architecture allows cpu and dma accesses to be spread over three separate rams that can be accessed simultaneously. 7.5 memory protection unit (mpu) the lpc17xx have a memory protection unit (mpu) which can be used to improve the reliability of an embedded system by protecting critical data within the user application.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 16 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller the mpu allows separating processing tasks by disallowing access to each other's data, disabling access to memory regions, allowing memory regions to be defined as read-only and detecting unexpected memory accesses th at could potentially break the system. the mpu separates the memory into distinct regions and implements protection by preventing disallowed accesses. the mpu supports up to 8 regions each of which can be divided into 8 subregions. accesses to memory locations that are not defined in the mpu regions, or not permitted by the region setting, will cause the memory management fault exception to take place. 7.6 memory map the lpc17xx incorporates several distinct memory regions, shown in the following figures. figure 3 shows the overall map of the entire address space from the user program viewpoint following reset. the interrupt vector area supports address remapping. the ahb peripheral area is 2 mb in size and is divided to allow for up to 128 peripherals. the apb peripheral area is 1 mb in size and is divided to allow for up to 64 peripherals. each peripheral of either type is allocated 16 kb of space. this a llows simplifying the address decoding for each peripheral.
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 17 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller fig 3. lpc17xx memory map 0x5000 0000 0x5000 4000 0x5000 8000 0x5000 c000 0x5020 0000 0x5001 0000 ahb peripherals ethernet controller (2) usb controller (3) reserved 127- 4 reserved gpdma controller 0 1 2 3 apb0 peripherals 0x4000 4000 0x4000 8000 0x4000 c000 0x4001 0000 0x4001 8000 0x4002 0000 0x4002 8000 0x4002 c000 0x4003 4000 0x4003 0000 0x4003 8000 0x4003 c000 0x4004 0000 0x4004 4000 0x4004 8000 0x4004 c000 0x4005 c000 0x4006 0000 0x4008 0000 0x4002 4000 0x4001 c000 0x4001 4000 0x4000 0000 wdt timer 0 timer 1 uart0 uart1 reserved reserved spi rtc + backup registers gpio interrupts pin connect ssp1 adc can af ram (3) can af registers (3) can common (3) can1 (3) can2 (3) 22 - 19 reserved i2c1 31 - 24 reserved 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 23 reserved reserved 32 kb local sram (lpc1768/7/6/5) 16 kb local sram (lpc1764) reserved reserved private peripheral bus 0x0000 0000 0 gb 0.5 gb 4 gb 1 gb 0x0004 0000 0x0002 0000 0x0008 0000 0x1000 4000 0x1000 0000 0x1000 8000 0x1fff 0000 0x1fff 2000 0x2008 0000 0x2007 c000 0x2008 4000 0x2200 0000 0x200a 0000 0x2009 c000 0x2400 0000 0x4000 0000 0x4008 0000 0x4010 0000 0x4200 0000 0x4400 0000 0x5000 0000 0x5020 0000 0xe000 0000 0xe010 0000 0xffff ffff reserved reserved gpio reserved reserved reserved reserved apb0 peripherals ahb peripherals apb1 peripherals ahb sram bit-band alias addressing peripheral bit-band alias addressing 16 kb ahb sram1 (lpc1768/7/6/5) 16 kb ahb sram0 lpc1768/67/66/65/64 memory space 256 kb on-chip flash (lpc1766/65) 128 kb on-chip flash (lpc1764) 512 kb on-chip flash (lpc1768/67) pwm1 8 kb boot rom 0x0000 0000 0x0000 0100 active interrupt vectors + 256 bytes i-code/d-code memory space 002aad946 (1) lpc1768/67/66/65 only (2) lpc1768/67/66/64 only (3) lpc1768/66/65/64 only apb1 peripherals 0x4008 0000 0x4008 8000 0x4008 c000 0x4009 0000 0x4009 4000 0x4009 8000 0x4009 c000 0x400a 0000 0x400a 4000 0x400a 8000 0x400a c000 0x400b 0000 0x400b 4000 0x400b 8000 0x400b c000 0x400c 0000 0x400f c000 0x4010 0000 ssp0 dac (1) timer 2 timer 3 uart2 uart3 reserved i2s (1) i2c2 1 - 0 reserved 2 3 4 5 6 7 8 9 10 reserved repetitive interrupt timer 11 12 reserved motor control pwm 30 - 16 reserved 13 14 15 system control 31 qei
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 18 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 7.7 nested vectored inte rrupt controller (nvic) the nvic is an integral part of the cortex-m 3. the tight coupling to the cpu allows for low interrupt latency and efficient processing of late arriving interrupts. 7.7.1 features ? controls system exceptions and peripheral interrupts ? in the lpc17xx, the nvic supports 33 vectored interrupts ? 32 programmable interrupt priority levels , with hardware pr iority level masking ? relocatable vector table ? non-maskable in terrupt (nmi) ? software interr upt generation 7.7.2 interrupt sources each peripheral device has one interrupt line connected to the nvic but may have several interrupt flags. individual interrupt flags may also represent more than one interrupt source. any pin on port 0 and port 2 (total of 42 pins) regardless of the selected function, can be programmed to generate an interrupt on a rising edge, a falling edge, or both. 7.8 pin connect block the pin connect block allows selected pins of the microcontroller to have more than one function. configuration registers control the multiplexers to allow connection between the pin and the on-chip peripherals. peripherals should be connected to the appropriate pins prior to being activated and prior to any related interrupt(s) being enabled. activi ty of any enabled peripheral function that is not mapped to a related pin should be considered undefined. most pins can also be configured as open-drai n outputs or to have a pull-up, pull-down, or no resistor enabled. 7.9 general purpose dma controller the gpdma is an amba ahb compliant periphe ral allowing selected peripherals to have dma support. the gpdma enables peripheral-to-memory, memory-to-peripheral, peripheral-to-peripheral, and memory-to-memory transactions. the source and destination areas can each be either a memory region or a peripheral, and can be accessed through the ahb master. the gpdma controller allows data transfers between the usb (lpc1768/66/65/64 only) and ethernet controllers (lpc1768/67/66/64 only) and the various on-chip sram ar eas. the supp orted apb periph erals are ssp0/1, all uarts, the i 2 s-bus interface, the adc, and the dac. two match signals for each timer can be used to trigger dma transfers. note that the i 2 s-bus interface and the dac are not available on the lpc1764.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 19 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 7.9.1 features ? eight dma channels. each channel can support an unidirectional transfer. ? 16 dma request lines. ? single dma and burst dma request signals. each peripheral connected to the dma controller can assert either a burst dma request or a single dma request. the dma burst size is set by programming the dma controller. ? memory-to-memory, memory-to-peripheral, peripheral-to-memory, and peripheral-to-peripheral transfers are supported. ? scatter or gather dma is supported through the use of linked lists. this means that the source and destination areas do not hav e to occupy contiguous areas of memory. ? hardware dma ch annel priority. ? ahb slave dma programming interface. the dma controller is programmed by writing to the dma control regist ers over the ahb slave interface. ? one ahb bus master for transferring data. the interface transfers data when a dma request goes active. ? 32-bit ahb master bus width. ? incrementing or non-incrementing addressing for source and destination. ? programmable dma burst size. the dma burst size can be programmed to more efficiently transfer data. ? internal four-word fifo per channel. ? supports 8, 16, and 32-bit wide transactions. ? big-endian and little-endian support. the dma controller defaults to little-endian mode on reset. ? an interrupt to the processor can be generated on a dma completion or when a dma error has occurred. ? raw interrupt status. the dma error and dma count raw interrupt status can be read prior to masking. 7.10 fast general purpose parallel i/o device pins that are not connec ted to a specific peripheral function are controlled by the gpio registers. pins may be dynamically conf igured as inputs or outputs. separate registers allow setting or clearing any number of outputs simultaneously. the value of the output register may be read back as well as the current state of the port pins. lpc17xx use accelerated gpio functions: ? gpio registers are accessed through the ahb multilayer bus so that the fastest possible i/o timing can be achieved. ? mask registers allow treating sets of por t bits as a group, leaving other bits unchanged. ? all gpio registers are byte and half-word addressable. ? entire port value can be written in one instruction. ? support for cortex-m3 bit banding. ? support for use with the gpdma controller.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 20 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller additionally, any pin on port 0 and port 2 (total of 42 pins) provid ing a digital function can be programmed to generate an interrupt on a rising edge, a falling edge, or both. the edge detection is asynchronous, so it may operate when clocks are not present such as during power-down mode. each enabled interrupt can be used to wake up the chip from power-down mode. 7.10.1 features ? bit level set and clear registers allow a single instruction to set or clear any number of bits in one port. ? direction control of individual bits. ? all i/o default to inputs after reset. ? pull-up/pull-down resistor configuration and open-drain configuration can be programmed through the pin connect block for each gpio pin. 7.11 ethernet (lpc1768/67/66/64 only) remark: the ethernet controller is not available for part lpc1765. the ethernet block contains a full featured 10 mbit/s or 100 mbit/s ethernet mac designed to provide optimized performa nce through the use of dma hardware acceleration. features include a generous suite of control registers, half or full duplex operation, flow control, cont rol frames, hardware acceleration for transmit retry, receive packet filtering and wake-up on lan activity. automatic frame transmission and reception with scatter-gather dma off-loads many operations from the cpu. the ethernet block and the cpu share the arm cortex-m3 d-code and system bus through the ahb-multilayer matrix to access the various on-chip sram blocks for ethernet data, control, and status information. the ethernet block interfaces between an off-chip ethernet phy using the reduced mii (rmii) protocol and the on-chip media independent interface management (miim) serial bus. the ethernet block supports bus clock rates of up to 100 mhz. 7.11.1 features ? ethernet standards support: ? supports 10 mbit/s or 100 mbit/s phy devices including 10 base-t, 100 base-tx, 100 base-fx, and 100 base-t4. ? fully compliant with ieee standard 802.3 . ? fully compliant with 802.3x full duplex fl ow control and half duplex back pressure. ? flexible transmit and receive frame options. ? virtual local area network (vlan) frame support. ? memory management: ? independent transmit and receive buffers memory mapped to shared sram. ? dma managers with scatter/gather dma and arrays of frame descriptors. ? memory traffic optimized by buffering and pre-fetching.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 21 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller ? enhanced ethernet features: ? receive filtering. ? multicast and broadcast frame support for both transmit and receive. ? optional automatic frame check sequence (fcs) insertion with cyclic redundancy check (crc) for transmit. ? selectable automatic transmit frame padding. ? over-length frame support for both transmit and receive allows any length frames. ? promiscuous receive mode. ? automatic collision back-off and frame retr ansmission. ? includes power management by clock switching. ? wake-on-lan power management support allows system wake-up: using the receive filters or a magic frame detection filter. ? physical interface: ? attachment of external phy chip through standard rmii interface. ? phy register access is available via the miim interface. 7.12 usb interface (lpc1768/66/65/64 only) the universal serial bu s (usb) is a 4-wire bus that supports communication between a host and one or more (up to 127) peripherals. the host controller allocates the usb bandwidth to attached devices through a token-based protocol. the bus supports hot plugging and dynamic configuration of the devi ces. all transactions are initiated by the host controller. the usb interface includes a device, hos t, and otg controller with on-chip phy for device and host functions. the otg switching pr otocol is supported through the use of an external controller. details on typical usb interfac ing solutions can be found in section 14.1 . remark: the lpc1764 includes a device controller only. 7.12.1 usb device controller the device controller enables 12 mbit/s data exchange with a usb host controller. it consists of a register interface, serial interface engine, endpoint buffer memory, and a dma controller. the serial interface engine dec odes the usb data stream and writes data to the appropriate endpoint buffer. the status of a completed usb transfer or error condition is indicated via status registers. an interrupt is also generated if enabled. when enabled, the dma controller transfers data be tween the endpoint buffer and the on-chip sram. 7.12.1.1 features ? fully compliant with usb 2.0 specification (full speed) . ? supports 32 physical (16 logical) endpoints with a 4 kb endpoint buffer ram. ? supports control, bulk, interrupt and isochronous endpoints. ? scalable realization of endpoints at run time.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 22 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller ? endpoint maximum packet size selection (up to usb maximum specification) by software at run time. ? supports softconnect and goodlink features. ? while usb is in the suspend mode, the lpc1768/66/65/64 can enter one of the reduced power modes and wake up on usb activity. ? supports dma transfers with all on-chip sram blocks on all non-control endpoints. ? allows dynamic switching between cpu-controlled slave and dma modes. ? double buffer implementation for bulk and isochronous endpoints. 7.12.2 usb host controller (lpc1768/66/65 only) the host controller enables fu ll- and low-speed data exchange with usb devices attached to the bus. it consists of a register interface, a serial interface engine, and a dma controller. the register interface complies with the ohci specification. 7.12.2.1 features ? ohci compliant. ? one downstream port. ? supports port power switching. 7.12.3 usb otg controller (lpc1768/66/65 only) usb otg is a supplement to the usb 2.0 spec ification that augmen ts the capability of existing mobile devices and usb peripherals by adding host functiona lity for connection to usb peripherals. the otg controller integrates the host contro ller, device controller, and a master-only i 2 c-bus interface to implement otg dual-rol e device functionality. the dedicated i 2 c-bus interface controls an ex ternal otg transceiver. 7.12.3.1 features ? fully compliant with on-the-go supplement to the u sb 2.0 specification, revision 1.0a . ? hardware support for host negotiation protocol (hnp). ? includes a programmable timer required for hnp and session request protocol (srp). ? supports any otg transceiver compliant with the otg transceiver specification (cea-2011), rev. 1.0 . 7.13 can controller and acceptan ce filters (lpc1768/66/65/64 only) the controller area network (can) is a serial communications protocol which efficiently supports distributed real-time control with a very high level of security. its domain of application ranges from high-speed ne tworks to low cost multiplex wiring. the can block is intended to support multip le can buses simultaneously, allowing the device to be used as a gateway, switch, or router among a number of can buses in industrial or automotive applications.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 23 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 7.13.1 features ? two can controllers and buses. ? data rates to 1 mbit/s on each bus. ? 32-bit register and ram access. ? compatible with can specification 2.0b, iso 11898-1 . ? global acceptance filter recognizes standard (11-bit) and extended-frame (29-bit) receive identifiers for all can buses. ? acceptance filter can provide fullcan-s tyle automatic reception for selected standard identifiers. ? fullcan messages can gen erate interrupts. 7.14 12-bit adc the lpc17xx contain a single 12-bit successive approximation adc with eight channels and dma support. 7.14.1 features ? 12-bit successive approximation adc. ? input multiplexing among 8 pins. ? power-down mode. ? measurement range vrefn to vrefp. ? 12-bit conversion rate: 200 khz. ? individual channels can be selected for conversion. ? burst conversion mode for single or multiple inputs. ? optional conversion on transition of input pin or timer match signal. ? individual result registers for each adc channel to reduce interrupt overhead. ? dma support. 7.15 10-bit dac (lpc1768/67/66/65 only) the dac allows to generate a variable analog output. the maximum output value of the dac is vrefp. 7.15.1 features ? 10-bit dac ? resistor string architecture ? buffered output ? power-down mode ? selectable output drive ? dedicated conversion timer ? dma support
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 24 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 7.16 uarts the lpc17xx each contain four uarts. in addition to standard transmit and receive data lines, uart1 also provides a full modem control handshake interface and support for rs-485/9-bit mode allowing both software address detection and automatic address detection using 9-bit mode. the uarts include a fractional baud rate generator. standard baud rates such as 115 200 bd can be achieved with any crystal frequency above 2 mhz. 7.16.1 features ? maximum uart data bit rate of 6.25 mbit/s. ? 16 b receive and transmit fifos. ? register locations conform to 16c550 industry standard. ? receiver fifo trig ger points at 1 b, 4 b, 8 b, and 14 b. ? built-in fractional baud rate generator cove ring wide range of baud rates without a need for external crystals of particular values. ? auto baud capabilities and fifo control mechanism that enables software flow control implementation. ? uart1 equipped with standard modem interface signals. this module also provides full support for hardware flow control (auto-cts/rts). ? support for rs-485/9-bit /eia-485 mode (uart1). ? uart3 includes an irda mode to support infrared communication. ? all uarts have dma support. 7.17 spi serial i/o controller the lpc17xx contain one spi controller. spi is a full duplex serial interface designed to handle multiple masters and slaves connected to a given bus. only a single master and a single slave can communicate on the interface during a given data transfer. during a data transfer the mast er always sends 8 bits to 16 bits of data to the slave, and the slave always sends 8 bits to 16 bits of data to the master. 7.17.1 features ? maximum spi data bit rate of 12.5 mbit/s ? compliant with spi specification ? synchronous, serial, full duplex communication ? combined spi master and slave ? maximum data bit rate of one eighth of the input clock rate ? 8 bits to 16 bits per transfer 7.18 ssp serial i/o controller the lpc17xx contain two ssp controllers. the ssp controller is capable of operation on a spi, 4-wire ssi, or microwire bus. it can interact with multiple masters and slaves on the bus. only a single master and a single slav e can communicate on the bus during a given
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 25 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller data transfer. the ssp supports full duplex transfers, with frames of 4 bits to 16 bits of data flowing from the master to the slave an d from the slave to the master. in practice, often only one of these data flows carries meaningful data. 7.18.1 features ? maximum ssp speed of 50 mbit/s (master) or 8 mbit/s (slave) ? compatible with motorola spi, 4-wire texas instruments ssi, and national semiconductor microwire buses ? synchronous serial communication ? master or slave operation ? 8-frame fifos for both transmit and receive ? 4-bit to 16-bit frame ? dma transfers supported by gpdma 7.19 i 2 c-bus serial i/o controllers the lpc17xx each contain three i 2 c-bus controllers. the i 2 c-bus is bidirectional for inter-ic contro l using only two wires: a serial clock line (scl) and a serial data line (sda). each device is recognized by a unique address and can operate as either a receiver-only device (e.g., an lcd driver) or a transmitter with the capability to both receive and send information (such as me mory). transmitters and/or receivers can operate in either master or sl ave mode, depending on whether the chip has to initiate a data transfer or is only addressed. the i 2 c is a multi-master bus and can be controlled by more than one bus master connected to it. 7.19.1 features ? i 2 c0 is a standard i 2 c compliant bus interface with open-drain pins. i 2 c0 also supports fast mode plus with bit rates up to 1 mbit/s. ? i 2 c1 and i 2 c2 use standard i/o pins wi th bit rates of up to 400 kbit/s (fast i 2 c-bus). ? easy to configure as master, slave, or master/slave. ? programmable clocks allow versatile rate control. ? bidirectional data transfer between masters and slaves. ? multi-master bus (no central master). ? arbitration between simultaneously transmit ting masters without corruption of serial data on the bus. ? serial clock synchronization allows devices with different bit rates to communicate via one serial bus. ? serial clock synchronization can be used as a handshake mechanism to suspend and resume serial transfer. ? the i 2 c-bus can be used for test and diagnostic purposes. ? all i 2 c-bus controllers support multiple address recognition and a bus monitor mode. 7.20 i 2 s-bus serial i/o controllers remark: the i 2 s-bus is not available on the lpc1764.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 26 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller the i 2 s-bus provides a standard communication interface for digital audio applications. the i 2 s-bus specification defines a 3-wire serial bus using one data line, one clock line, and one word select signal. the basic i 2 s-bus connection has one master, which is always the master, and one slave. the i 2 s-bus interface on the lpc1768/67/66/65 provides a separate transmit and receive channel, each of which can operate as either a master or a slave. 7.20.1 features ? the interface has separate input/output chan nels each of which can operate in master or slave mode. ? capable of handling 8-bit, 16-bit, and 32-bit word sizes. ? mono and stereo audio data supported. ? the sampling frequency can range from 16 khz to 96 khz (16, 22.05, 32, 44.1, 48, 96) khz. ? support for an audio master clock. ? configurable word select period in master mode (separately for i 2 s-bus input and output). ? two 8-word fifo data buffers are provided, one for transmit and one for receive. ? generates interrupt requests when buffer levels cross a programmable boundary. ? two dma requests, controlled by programma ble buffer levels. these are connected to the gpdma block. ? controls include reset, stop and mute options separately for i 2 s-bus input and i 2 s-bus output. 7.21 general purpose 32-bit time rs/external event counters the lpc17xx include four 32-bit timer/counte rs. the timer/counter is designed to count cycles of the system derived clock or an ex ternally-supplied clock. it can optionally generate interrupts, generate timed dma reques ts, or perform other actions at specified timer values, based on four match registers. each timer/counter also includes two capture inputs to trap the timer value when an input si gnal transitions, optionally generating an interrupt. 7.21.1 features ? a 32-bit timer/counter with a programmable 32-bit prescaler. ? counter or timer operation. ? two 32-bit capture channels per timer, that can take a snapshot of the timer value when an input signal transitions. a capture event may also generate an interrupt. ? four 32-bit match registers that allow: ? continuous operation with optional interrupt generation on match. ? stop timer on match with optional interrupt generation. ? reset timer on match with optional interrupt generation. ? up to four external outputs corresponding to match registers, with the following capabilities:
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 27 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller ? set low on match. ? set high on match. ? toggle on match. ? do nothing on match. ? up to two match registers can be used to generate timed dma requests. 7.22 pulse width modulator the pwm is based on the standard timer block and inherits all of its features, although only the pwm function is pinned out on the lpc17xx. the timer is designed to count cycles of the system derived clock and optiona lly switch pins, gene rate interrupts or perform other actions when specified timer va lues occur, based on seven match registers. the pwm function is in addition to these feat ures, and is based on match register events. the ability to separately contro l rising and falling edge locations allo ws the pwm to be used for more applications. for instance, mu lti-phase motor control typically requires three non-overlapping pwm outputs with individual control of all three pulse widths and positions. two match registers can be used to provide a single edge controlled pwm output. one match register (pwmmr0) controls the pwm cycle rate, by resetting the count upon match. the other match register controls th e pwm edge position. additional single edge controlled pwm outputs require only one match re gister each, since the repetition rate is the same for all pwm outputs. multiple single edge contro lled pwm outputs will all have a rising edge at the beginning of each pwm cycle, when an pwmmr0 match occurs. three match registers can be used to provid e a pwm output with both edges controlled. again, the pwmmr0 match register contro ls the pwm cycle rate. the other match registers control the two pwm edge positi ons. additional double edge controlled pwm outputs require only two match registers each, si nce the repetition rate is the same for all pwm outputs. with double edge controlled pwm outputs, spec ific match registers control the rising and falling edge of the output. this allows both positive going pwm pulses (when the rising edge occurs prior to the fa lling edge), and negative goi ng pwm pulses (when the falling edge occurs prior to the rising edge). 7.22.1 features ? one pwm block with counter or timer operation (may use the peripheral clock or one of the capture inputs as the clock source). ? seven match registers allow up to 6 single edge controlled or 3 double edge controlled pwm outputs, or a mix of bot h types. the match registers also allow: ? continuous operation with optional interrupt generation on match. ? stop timer on match with optional interrupt generation. ? reset timer on match with optional interrupt generation.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 28 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller ? supports single edge controlled and/or double edge controlled pwm outputs. single edge controlled pwm outputs all go high at the beginning of each cycle unless the output is a constant low. double edge controlled pwm outputs can have either edge occur at any position within a cycle. this a llows for both positive going and negative going pulses. ? pulse period and width can be any number of timer counts. this allows complete flexibility in the trad e-off between resolution and re petition rate. all pwm outputs will occur at the same repetition rate. ? double edge controlled pwm outputs can be programmed to be either positive going or negative going pulses. ? match register updates are synchronized wit h pulse outputs to prevent generation of erroneous pulses. software must ?release? new match values before they can become effective. ? may be used as a standard 32-bit timer/ counter with a programmable 32-bit prescaler if the pwm mode is not enabled. 7.23 motor control pwm the motor control pwm is a specialized pwm supporting 3-phase motors and other combinations. feedback inputs are provided to automatically sense rotor position and use that information to ramp speed up or down. an abort input is also provided that causes the pwm to immediately release all motor drive ou tputs. at the same time, the motor control pwm is highly configurable for other genera lized timing, counting, capture, and compare applications. 7.24 quadrature encoder interface (qei) a quadrature encoder, also known as a 2-chan nel incremental encoder, converts angular displacement into two pulse signals. by mo nitoring both the number of pulses and the relative phase of the two signals, the user ca n track the position, direction of rotation, and velocity. in addition, a third channel, or index signal, can be used to reset the position counter. the quadrature encoder interface decodes the digital pulses from a quadrature encoder wheel to integrate position over ti me and determine direction of rotation. in addition, the qei can capture the velocity of the encoder wheel. 7.24.1 features ? tracks encoder position. ? increments/decrements depending on direction. ? programmable for 2 or 4 position counting. ? velocity capture using built-in timer. ? velocity compare function with ?less than? interrupt. ? uses 32-bit registers for position and velocity. ? three position compare registers with interrupts. ? index counter for re volution counting. ? index compare register with interrupts. ? can combine index and position interrupts to produce an interrupt for whole and partial revolution displacement.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 29 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller ? digital filter with prog rammable delays for encoder input signals. ? can accept decoded signal inputs (clk and direction). ? connected to apb. 7.25 repetitive inte rrupt (ri) timer the repetitive interrupt timer provides a free-r unning 32-bit counter which is compared to a selectable value, generating an interrupt when a match occurs. any bits of the timer/compare can be masked such that they do not contribute to the match detection. the repetitive interrupt timer can be used to create an interrupt that repeats at predetermined intervals. 7.25.1 features ? 32-bit counter running from pclk. counter can be free-running or be reset by a generated interrupt. ? 32-bit compare value. ? 32-bit compare mask. an interrupt is generated when the counter value equals the compare value, after masking. this allows for co mbinations not poss ible with a simple compare. 7.26 arm cortex-m3 system tick timer the arm cortex-m3 includes a system tick timer (systic k) that is inte nded to generate a dedicated systick exception at a 10 ms interval. in the lpc 17xx, this timer can be clocked from the internal ahb clock or from a device pin. 7.27 watchdog timer the purpose of the watchdog is to reset the mi crocontroller within a reasonable amount of time if it enters an erroneou s state. when enabl ed, the watchdog w ill generate a system reset if the user program fails to ?feed? (o r reload) the watchdog within a predetermined amount of time. 7.27.1 features ? internally resets chip if not period ically reloaded. ? debug mode. ? enabled by software but requires a hardware reset or a watchdog reset/interrupt to be disabled. ? incorrect/incomplete feed sequence causes reset/interrupt if enabled. ? flag to indicate watchdog reset. ? programmable 32-bit timer with internal prescaler. ? selectable time period from (t cy(wdclk) 256 4) to (t cy(wdclk) 2 32 4) in multiples of t cy(wdclk) 4. ? the watchdog clock (wdclk) source can be selected from the internal rc (irc) oscillator, the rtc oscillator, or the apb peripheral clock. this gives a wide range of potential timing choices of watchdog o peration under different power reduction
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 30 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller conditions. it also provides the ability to ru n the wdt from an entirely internal source that is not dependent on an external crystal and its associated components and wiring for increased reliability. ? includes lock/safe feature. 7.28 rtc and backup registers the rtc is a set of counters for measuring ti me when system power is on, and optionally when it is off. the rtc on the lpc17xx is designed to have extremely low power consumption, i.e. less than 1 a. the rtc will typically run from the main chip power supply, conserving battery po wer while the rest of the de vice is powered up. when operating from a battery, the rtc will continue working down to 2.1 v. battery power can be provided from a standard 3 v lithium button cell. an ultra-low power 32 khz oscillator will provide a 1 hz clock to the time counting portion of the rtc, moving most of the power cons umption out of the time counting function. the rtc includes a calibration mechanism to allow fine-tuning the count rate in a way that will provide less th an 1 second per day error when o perated at a constant voltage and temperature. a clock output function (see section 7.29.4 ) makes measuring the oscillator rate easy and accurate. the rtc contains a small set of backup regi sters (20 bytes) for holding data while the main part of the lpc17xx is powered off. the rtc includes an alarm function that can wake up the lpc17xx from all reduced power modes with a time resolution of 1 s. 7.28.1 features ? measures the passage of time to maintain a calendar and clock. ? ultra low power design to support battery powered systems. ? provides seconds, minutes, hours, day of month, month, year, day of week, and day of year. ? dedicated power supply pin can be connected to a battery or to the main 3.3 v. ? periodic interrupts can be generated from increments of any field of the time registers. ? backup registers (20 bytes) powered by vbat. ? rtc power supply is isolated from the rest of the chip. 7.29 clocking and power control 7.29.1 crystal oscillators the lpc17xx include three ind ependent oscillators. these are the main oscillator, the irc oscillator, and the rtc oscillator. each osc illator can be used for more than on e purpose as required in a particular application. any of the three clock sources can be chosen by software to drive the main pll and ultimately the cpu. following reset, the lpc17xx will operate from the internal rc oscillator until switched by software. this allows systems to operate without any external crystal and the bootloader code to operate at a known frequency.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 31 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller see figure 4 for an overview of the lpc17xx clock generation. 7.29.1.1 internal rc oscillator the irc may be used as the clock source for th e wdt, and/or as the clock that drives the pll and subsequently the cpu. the nominal irc frequency is 4 mhz. the irc is trimmed to 1 % accuracy over the entire voltage and temperature range. upon power-up or any chip reset, the lpc17xx use the irc as the clock source. software may later switch to one of the other available clock sources. 7.29.1.2 main oscillator the main oscillator can be used as the clock so urce for the cpu, with or without using the pll. the main oscillator also provides the clock source for the dedicated usb pll. the main oscillato r operates at frequencies of 1 mhz to 25 mhz. this frequency can be boosted to a higher frequency, up to the maxi mum cpu operating frequency, by the main pll. the clock selected as the pll inpu t is pllclkin. the arm processor clock frequency is referred to as cclk elsewhere in this document. the frequencies of pllclkin and cclk are the same value unless the pll is active and connected. the clock frequency for each peripheral can be selected individually and is referred to as pclk. refer to section 7.29.2 for additional information. 7.29.1.3 rtc oscillator the rtc oscillator can be used as the clock source for the rtc bl ock, the ma in pll, and/or the cpu. fig 4. lpc17xx clocking generation block diagram main oscillator internal rc oscillator rtc oscillator main pll watchdog timer real-time clock cpu clock divider peripheral clock generator usb block arm cortex-m3 ethernet block dma gpio nvic usb clock divider system clock select (clksrcsel) usb clock config (usbclkcfg) cpu clock config (cclkcfg) pllclk cclk/8 cclk/6 cclk/4 cclk/2 cclk pclk wdt rtclk = 1hz usbclk (48 mhz) cclk usb pll usb pll enable main pll enable 32 khz apb peripherals lpc17xx 002aad94 7
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 32 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 7.29.2 main pll (pll0) the pll0 accepts an input clock frequency in the range of 32 khz to 25 mhz. the input frequency is multiplied up to a high frequency, then divided down to provide the actual clock used by the cpu and/or the usb block. the pll0 input, in the range of 32 khz to 25 mhz, may initially be divided down by a value ?n?, which may be in the r ange of 1 to 256. this input division provides a wide range of output frequencies from the same input frequency. following the pll0 input divider is the pll0 mult iplier. this can multiply the input divider output through th e use of a current controlled oscilla tor (cco) by a value ?m?, in the range of 1 through 32768. the resulting frequency must be in the range of 275 mhz to 550 mhz. the multiplier works by dividing the cco output by the value of m, then using a phase-frequency detector to compare the divided cco output to the multiplier input. the error value is used to adjust the cco frequency. the pll0 is turned off and bypassed following a chip reset and by entering power-down mode. pll0 is enabled by software only. the program must configure and activate the pll0, wait for the pll0 to lock, and then connect to the pll0 as a clock source. 7.29.3 usb pll (pll1) the lpc17xx contain a second, dedicated u sb pll1 to provide clocking for the usb interface. the pll1 receives its clock input from the main oscillator only and provides a fixed 48 mhz clock to the usb block only. the pll1 is disabled and powered off on reset. if the pll1 is left disabled, the usb clock will be supplied by the 48 mhz clock from the main pll0. the pll1 accepts an input clock frequency in the range of 10 mhz to 25 mhz only. the input frequency is multiplied up the range of 48 mhz for the usb clock using a current controlled oscillators (cco). it is insured that the pll1 output has a 50 % duty cycle. 7.29.4 rtc clock output the lpc17xx feature a clock ou tput function intended for synchronizing with external devices and for use during system development to allow checking the internal clocks cclk, irc clock, main crystal, rtc clock, and usb clock in the outside world. the rtc clock output allows tuning the rtc frequency without probing the pin, which would distort the results. 7.29.5 wake-up timer the lpc17xx begin operation at power-up and when awakened from power-down mode by using the 4 mhz irc oscillator as the clock source . this allows chip operation to resume quickly. if the main oscillator or the pll is needed by the application, software will need to enable these features and wait for them to st abilize before they are used as a clock source. when the main oscillator is init ially activated, the wake-up timer allows software to ensure that the main oscillator is fully functional before the processor uses it as a clock source and starts to execute instructions. this is im portant at power on, all types of reset, and
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 33 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller whenever any of the aforemen tioned functions are turned off for any reason. since the oscillator and other functions are turned off during power-down mode, any wake-up of the processor from power-down mode makes use of the wake-up timer. the wake-up timer monitors the crystal oscilla tor to check whether it is safe to begin code execution. when power is applied to th e chip, or when some event caused the chip to exit power-down mode , some time is requir ed for the oscillator to produce a signal of sufficient amplitude to drive the clock logic. the amount of time depends on many factors, including the rate of v dd(3v3) ramp (in the case of power on), the type of crystal and its electrical characteristics (if a quartz crystal is used), as well as any other external circuitry (e.g., capacitors), and th e characteristics of the oscillator itself under the existing ambient conditions. 7.29.6 power control the lpc17xx support a variety of power control features. there are four special modes of processor power reduction: sleep mode, deep-sleep mode, power-down mode, and deep power-down mode. the cpu clock rate may also be controlled as needed by changing clock sources, reconfiguring pll values, and/or altering the cpu clock divider value. this allows a trade-off of power ve rsus processing speed based on application requirements. in addition, peripheral power control allows shutting down the clocks to individual on-chip peripherals, allowing fine tuning of power consumption by eliminating all dynamic power use in any peripherals that are no t required for the application. each of the peripherals has its own clock divider wh ich provides even better power control. integrated pmu (power management unit) au tomatically adjust inte rnal regulators to minimize power consumption during slee p, deep sleep, power-down, and deep power-down modes. the lpc17xx also implement a separate power domain to allow turning off power to the bulk of the device while maintaining operation of the rtc and a small set of registers for storing data during any of the power-down modes. 7.29.6.1 sleep mode when sleep mode is entered, the clock to the core is stopped. resumption from the sleep mode does not need any special sequence but re-enabling the clock to the arm core. in sleep mode, execution of instructions is suspended until either a reset or interrupt occurs. peripheral functions continue opera tion during sleep mode and may generate interrupts to cause the processor to resume execution. sleep mode eliminates dynamic power used by the processor itself, memory systems and related controllers, and internal buses. 7.29.6.2 deep-sleep mode in deep-sleep mode, the oscilla tor is shut down and the chip receives no internal clocks. the processor state and registers, peripheral registers, and internal sram values are preserved throughout deep-sleep mode and the logic levels of chip pins remain static. the output of the irc is disabled but the irc is not powered down for a fast wake-up later. the rtc oscillator is not stopped because the rtc interrupts ma y be used as the wake-up source. the pll is automatically turned off and disconnected. the cclk and usb clock dividers automati cally get reset to zero.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 34 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller the deep-sleep mode can be terminated a nd normal operation resumed by either a reset or certain specific inte rrupts that are able to function without clocks. since all dynamic operation of the chip is suspended, deep-sleep mode reduces chip power consumption to a very low value. power to th e flash memory is left on in deep-sleep mode, allowing a very quick wake-up. on wake-up from deep-sleep mode, the code execution an d peripherals activities will resume after 4 cycles expire if the irc was used before entering deep-sleep mode. if the main external oscillator wa s used, the code execution w ill resume when 4096 cycles expire. pll and clock dividers need to be reconfigured accordingly. 7.29.6.3 power-down mode power-down mode does everythi ng that deep-sleep mode does, but also turns off the power to the irc oscillator an d the flash memory. this save s more power but requires waiting for resumption of flash operation befo re execution of code or data access in the flash memory can be accomplished. on the wake-up of power-down mode, if the irc was used before entering power-down mode, it will take irc 60 s to start-up. after this 4 irc cycles will expire before the code execution can then be resumed if the code was running from sram. in the meantime, the flash wake-up timer then counts 4 mhz irc clock cycles to make the 100 s flash start-up time. when it times out, access to the flash will be allowed. users need to reconfigure the pll and clock dividers accordingly. 7.29.6.4 deep power-down mode the deep power-down mode can only be entered from the rtc block. in deep power-down mode, power is shut off to the entire chip with the exception of the rtc module and the reset pin. the lpc17xx can wake up from deep power-down mode via the reset pin or an alarm match event of the rtc. 7.29.6.5 wakeup interrupt controller the wakeup interrupt controller (wic) allows the cpu to automatically wake up from any enabled priority interrupt that can occur while the clocks are stopped in deep sleep, power-down, and deep power-down modes. the wic works in connection with the nested vectored interrupt controller (nvic). when the cpu enters deep sleep, power-down, or deep power-down mode, the nvic sends a mask of the current interrupt situation to t he wic.this mask includes all of the interrupts that are both enabled and of sufficient priority to be serviced immediately. with this information, the wic simply notices when one of the interrupts has occurred and then it wakes up the cpu. the wic eliminates the need to periodically wake up the cpu and poll the interrupts resulting in additional power savings. 7.29.7 peripheral power control a power control for peripherals feature allows individual peripherals to be turned off if they are not needed in the application, resulting in additional power savings.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 35 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 7.29.8 power domains the lpc17xx provide two independent power domains that allow the bulk of the device to have power removed while maintaining operation of the rtc and the backup registers. on the lpc17xx, i/o pads are powered by the 3.3 v (v dd(3v3) ) pins, while the v dd(reg)(3v3) pin powers the on-chip voltage regulator which in turn provides power to the cpu and most of the peripherals. depending on the lpc17xx application, a de sign can use two power options to manage power consumption. the first option assumes that power consumptio n is not a concern and the design ties the v dd(3v3) and v dd(reg)(3v3) pins together. this approach requires only one 3.3 v power supply for both pads, the cpu, and peripherals. while this solution is simple, it does not support powering down the i/o pad ring ?on the fly? while keeping the cpu and peripherals alive. the second option uses tw o power supplies; a 3.3 v supply for the i/o pads (v dd(3v3) ) and a dedicated 3.3 v supply for the cpu (v dd(reg)(3v3) ). having the on-chip voltage regulator powered independently from the i/o pad ring enables shutting down of the i/o pad power supply ?on the fly?, while the cpu and peripherals stay active. the vbat pin supplies power only to the rtc domain. the rtc requires a minimum of power to operate, which can be supplied by an external battery. the device core power (v dd(reg)(3v3) ) is used to operate the rtc whenever v dd(reg)(3v3) is present. therefore, there is no power drain from the rtc battery when v dd(reg)(3v3) is available.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 36 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 7.30 system control 7.30.1 reset reset has four sources on the lpc17xx: the reset pin, the watchdog reset, power-on reset (por), and the brownout detection (bod) circuit. the reset pin is a schmitt trigger input pin. assertion of chip reset by any source, once the operating voltage attains a usable level, starts the wake-up timer (see description in section 7.29.5 ), causing reset to remain asserted until the ex ternal reset is de-ass erted, the oscillator is running, a fixed number of clocks have passed, and the flas h controller has completed its initialization. when the internal reset is removed, the proc essor begins executing at address 0, which is initially the reset vector ma pped from the boot block. at that point, all of the processor and peripheral registers have been in itialized to predetermined values. fig 5. power distribution real-time clock backup registers 3.3 v regulator 32 khz oscillator power selector ultra-low power regulator rtc power domain main power domain 002aad97 8 rtcx1 vbat v dd(reg)(3v3) rtcx2 v dd(3v3) v ss to memories, peripherals, oscillators, plls to core to i/o pads adc dac adc power domain v dda vrefp vrefn v ssa lpc17xx
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 37 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 7.30.2 brownout detection the lpc17xx include 2-stage monitoring of the voltage on the v dd(reg)(3v3) pins. if this voltage falls below 2.95 v, the bod asserts an interrupt signal to the vectored interrupt controller. this signal can be enabled for inte rrupt in the interrupt enable register in the nvic in order to cause a cpu in terrupt; if not, software can monitor the signal by reading a dedicated status register. the second stage of low-voltage detection asserts reset to inactivate the lpc17xx when the voltage on the v dd(reg)(3v3) pins falls below 2.65 v. this reset prevents alteration of the flash as operation of the various elem ents of the chip would otherwise become unreliable due to low voltage. the bod circuit maintains this reset down below 1 v, at which point the power-on reset circuitry maintains the overall reset. both the 2.95 v and 2.65 v thresholds include some hysteresis. in normal operation, this hysteresis allows the 2.95 v detection to reliably interrupt, or a regularly executed event loop to sense the condition. 7.30.3 code security (code read protection - crp) this feature of the lpc17xx allows user to enabl e different levels of security in the system so that access to the on-chip flash and us e of the jtag and isp can be restricted. when needed, crp is invoked by programming a specif ic pattern into a dedicated flash location. iap commands are not affected by the crp. there are three levels of the code read protection. crp1 disables access to chip via the jtag and allows partial flash update (excluding flash sector 0) using a limited set of the is p commands. this mode is useful when crp is required and flash field updates are needed but all sectors can not be erased. crp2 disables access to chip via the jtag and only allows full flash erase and update using a reduced set of the isp commands. running an application with level crp3 selected fully disa bles any access to chip via the jtag pins and the isp. this mode effectively disables isp override using p2[10] pin, too. it is up to the user?s application to provide (if needed) flash update mechanism using iap calls or call reinvoke isp command to enable flash update via uart0. 7.30.4 apb interface the apb peripherals are split into two separa te apb buses in order to distribute the bus bandwidth and thereby reducing stalls caus ed by contention between the cpu and the gpdma controller. caution if level three code read protection (crp3) is selected, no future factory testing can be performed on the device.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 38 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 7.30.5 ahb multilayer matrix the lpc17xx use an ahb multilayer matrix. this matrix connects the instruction (i-code) and data (d-code) cpu buses of the arm cortex-m3 to the flash memory, the main (32 kb) static ram, and the boot rom. the gpdma can also access all of these memories. the peripheral dma controllers, ethernet, and usb can access all sram blocks. additionally, the matrix connects the cpu system bus and all of the dma controllers to the various peripheral functions. 7.30.6 external interrupt inputs the lpc17xx include up to 46 edge sensitive interrupt inputs combined with up to four level sensitive external interrupt inputs as selectable pin functions. the external interrupt inputs can optionally be used to wake up the processor from power-down mode. 7.30.7 memory mapping control the cortex-m3 incorporates a me chanism that allows remapping the interrupt vector table to alternate locations in the memory map. th is is controlled via the vector table offset register contained in the nvic. the vector table may be located anywhere within the bottom 1 gb of cortex-m3 address space. the vector table must be located on a 128 word (512 byte) boundary because the nvic on the lpc17xx is configured for 128 total interrupts. 7.31 emulation and debugging debug and trace functions are integrated in to the arm cortex-m3. serial wire debug and trace functions are supported in addition to a standard jtag debug and parallel trace functions. the arm cortex-m3 is configured to support up to eight breakpoints and four watch points.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 39 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 8. limiting values [1] the following applies to the limiting values: a) this product includes circuitry specif ically designed for the protection of its in ternal devices from the damaging effects of excessive static charge. nonetheless, it is sugges ted that conventional precautions be tak en to avoid applying greater than the rated maximum. b) parameters are valid over operating te mperature range unless otherwise specifi ed. all voltages are with respect to v ss unless otherwise noted. [2] including voltage on outputs in 3-state mode. [3] not to exceed 4.6 v. [4] the peak current is limited to 25 times the corresponding maximum current. [5] dependent on package type. [6] human body model: equivalent to discharging a 100 pf capacitor through a 1.5 k series resistor. table 4. limiting values in accordance with the absolute ma ximum rating system (iec 60134). [1] symbol parameter conditions min max unit v dd(3v3) supply voltage (3.3 v) core and external rail 2.4 3.6 v v dd(reg)(3v3) regulator supply voltage (3.3 v) 2.4 3.6 v v dda analog 3.3 v pad supply voltage ? 0.5 +4.6 v v i(vbat) input voltage on pin vbat for the rtc ? 0.5 +4.6 v v i(vrefp) input voltage on pin vrefp ? 0.5 +4.6 v v ia analog input voltage on adc related pins ? 0.5 +5.1 v v i input voltage 5 v tolerant i/o pins; only valid when the v dd(3v3) supply voltage is present [2] ? 0.5 +5.5 v other i/o pins [2] [3] ? 0.5 v dd(3v3) + 0.5 v i dd supply current per supply pin [4] - 100 ma i ss ground current per ground pin [4] - 100 ma i latch i/o latch-up current ? (0.5v dd(3v3) ) < v i < (1.5v dd(3v3) ); t j < 125 c - 100 ma t stg storage temperature [5] ? 65 +150 c p tot(pack) total power dissipation (per package) based on package heat transfer, not device power consumption - 1.5 w v esd electrostatic discharge voltage human body model; all pins [6] ? 4 000 +4 000 v
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 40 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 9. thermal characteristics the average chip junction temperature, t j ( c), can be calculated using the following equation: (1) ? t amb = ambient temperature ( c), ? r th(j-a) = the package junction-to-ambient thermal resistance ( c/w) ? p d = sum of internal and i/o power dissipation the internal power dissipation is the product of i dd and v dd . the i/o power dissipation of the i/o pins is often small and many times can be negligible. however it can be significant in some applications. t j t amb p d r th j a ? () () + = table 5. thermal characteristics v dd = 2.4 v to 3.6 v; t amb = ? 40 c to +85 c unless otherwise specified; symbol parameter conditions min typ max unit t j(max) maximum junction temperature - - 125 c
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 41 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 10. static characteristics table 6. static characteristics t amb = ? 40 c to +85 c, unless otherwise specified. symbol parameter conditions min typ [1] max unit supply pins v dd(3v3) supply voltage (3.3 v) core and external rail 2.4 3.3 3.6 v v dd(reg)(3v3) regulator supply voltage (3.3 v) 2.4 3.3 3.6 v v dda analog 3.3 v pad supply voltage 2.7 3.3 3.6 v v i(vbat) input voltage on pin vbat [2] 2.1 3.3 3.6 v v i(vrefp) input voltage on pin vrefp 2.7 3.3 v dda v i dd(reg)(3v3) regulator supply current (3.3 v) active mode; code while(1){} executed from flash; all peripherals disabled; pclk = cclk ? 8 cclk = 12 mhz; pll disabled [3] - 7 - ma cclk = 100 mhz; pll enabled [3] - 42 - ma sleep mode [3] [4] - 2 - ma deep sleep mode [3] [5] - 240 - a power-down mode [3] [5] - 31 - a deep power-down mode; rtc not running [3] - 517 - na i bat battery supply current deep power-down mode; rtc running v dd(reg)(3v3) present [6] - 134 - na v dd(reg)(3v3) not present [7] - 634 - na i dd(io) i/o supply current deep sleep mode [8] - 40 - na power-down mode [8] - 40 - na deep power-down mode [8] - 10 - na i dd(adc) adc supply current deep sleep mode [9] - 38 - na power-down mode [9] - 38 - na deep power-down mode [9] - 24 - na i i(adc) adc input current on pin vrefp deep sleep mode [10] - 100 - na power-down mode [10] - 100 - na deep power-down mode [10] - 100 - na
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 42 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller standard port pins, reset , rtck i il low-level input current v i = 0 v; on-chip pull-up resistor disabled - - 3 a i ih high-level input current v i = v dd(3v3) ; on-chip pull-down resistor disabled - - 3 a i oz off-state output current v o = 0 v; v o = v dd(3v3) ; on-chip pull-up/down resistors disabled - - 3 a v i input voltage pin configured to provide a digital function [11] [12] [13] 0 - 5.0 v v o output voltage output active 0 - v dd(3v3) v v ih high-level input voltage 2.0 - - v v il low-level input voltage - - 0.8 v v hys hysteresis voltage - 0.4 - v v oh high-level output voltage i oh = ? 4 ma [14] v dd(3v3) ? 0.4 - - v v ol low-level output voltage i ol = 4 ma [14] - - 0.4 v i oh high-level output current v oh = v dd(3v3) ? 0.4 v [14] ? 4 - - ma i ol low-level output current v ol = 0.4 v [14] 4 - - ma i ohs high-level short-circuit output current v oh = 0 v [15] - - ? 45 ma i ols low-level short-circuit output current v ol = v dd(3v3) [15] - - 50 ma i pd pull-down current v i = 5 v 10 50 150 a i pu pull-up current v i = 0 v ? 15 ? 50 ? 85 a v dd(3v3) < v i < 5 v 0 0 0 a i 2 c-bus pins (p0[27] and p0[28]) v ih high-level input voltage 0.7v dd(3v3) - - v v il low-level input voltage - - 0.3v dd(3v3) v v hys hysteresis voltage - 0.5v dd(3v3) - v v ol low-level output voltage i ols = 3 ma [14] - - 0.4 v i li input leakage current v i = v dd(3v3) [16] - 2 4 a v i = 5 v - 10 22 a oscillator pins v i(xtal1) input voltage on pin xtal1 0 1.8 1.95 v v o(xtal2) output voltage on pin xtal2 0 1.8 1.95 v table 6. static characteristics ?continued t amb = ? 40 c to +85 c, unless otherwise specified. symbol parameter conditions min typ [1] max unit
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 43 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller [1] typical ratings are not guaranteed. the va lues listed are at room temperature (25 c), nominal supply voltages. [2] the rtc typically fails when v i(vbat) drops below 1.6 v. [3] v dd(reg)(3v3) = 3.3 v; t amb = 25 c for all power consumption measurements. [4] irc running at 4 mhz; main o scillator and pll disabled; pclk = cclk ? 8 . [5] bod disabled. [6] on pin vbat; i dd(reg)(3v3) = 520 na; v dd(reg)(3v3) = 3.3 v; v bat = 3.3 v; t amb = 25 c. [7] on pin vbat; v bat = 3.3 v; t amb = 25 c. [8] all internal pull-ups disabled. all pi ns configured as output and driven low. v dd(3v3) = 3.3 v; t amb = 25 c. [9] v dda = 3.3 v; t amb = 25 c. [10] v i(vrefp) = 3.3 v; t amb = 25 c. [11] including voltage on outputs in 3-state mode. [12] v dd(3v3) supply voltages must be present. [13] 3-state outputs go into 3-state mode when v dd(3v3) is grounded. [14] accounts for 100 mv voltage drop in all supply lines. [15] allowed as long as the current limit does not exceed the maximum current allowed by the device. [16] to v ss . [17] includes external resistors of 33 1 % on d+ and d ? . v i(rtcx1) input voltage on pin rtcx1 0 1.8 1.95 v v o(rtcx2) output voltage on pin rtcx2 0 1.8 1.95 v usb pins (lpc1768/66/65/64 only) i oz off-state output current 0 v < v i < 3.3 v - - 10 a v bus bus supply voltage - - 5.25 v v di differential input sensitivity voltage | (d+) ? (d ? ) | 0.2 - - v v cm differential common mode voltage range includes v di range 0.8 - 2.5 v v th(rs)se single-ended receiver switching threshold voltage 0.8 - 2.0 v v ol low-level output voltage for low-/full-speed r l of 1.5 k to 3.6 v - - 0.18 v v oh high-level output voltage (driven) for low-/full-speed r l of 15 k to gnd 2.8 - 3.5 v c trans transceiver capacitance pin to gnd - - 20 pf z drv driver output impedance for driver which is not high-speed capable with 33 series resistor; steady state drive [17] 36 - 44.1 table 6. static characteristics ?continued t amb = ? 40 c to +85 c, unless otherwise specified. symbol parameter conditions min typ [1] max unit
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 44 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 10.1 electrical pi n characteristics conditions: v dd(reg)(3v3) = v dd(3v3) = 3.3 v; standard port pins. fig 6. typical high-level output voltage v oh versus high-level output source current i oh conditions: v dd(reg)(3v3) = v dd(3v3) = 3.3 v; standard port pins. fig 7. typical low-leve l output current i ol versus low-level output voltage v ol i oh (ma) 0 24 16 8 002aaf112 2.8 2.4 3.2 3.6 v oh (v) 2.0 t = 85 c 25 c ? 40 c v ol (v) 0 0.6 0.4 0.2 002aaf111 5 10 15 i ol (ma) 0 t = 85 c 25 c ? 40 c
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 45 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller conditions: v dd(reg)(3v3) = v dd(3v3) = 3.3 v; standard port pins. fig 8. typical pull-up current i pu versus input voltage v i conditions: v dd(reg)(3v3) = v dd(3v3) = 3.3 v; standard port pins. fig 9. typical pull-down current i pd versus input voltage v i 0 5 4 23 1 002aaf108 ? 30 ? 50 ? 10 10 i pu ( a) ? 70 t = 85 c 25 c ? 40 c v i (v) 002aaf109 v i (v) 0 5 3 24 1 10 70 50 30 90 i pd ( a) ? 10 t = 85 c 25 c ? 40 c
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 46 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 11. dynamic characteristics 11.1 flash memory [1] number of program/erase cycles. 11.2 external clock [1] parameters are valid over operating tem perature range unless otherwise specified. [2] typical ratings are not guaranteed. the va lues listed are at room temperature (25 c), nominal supply voltages. table 7. flash characteristics t amb = ? 40 c to +85 c, unless otherwise specified. symbol parameter conditions min typ max unit n endu endurance [1] 10 000 - - cycles t ret retention time powered 10 - - years unpowered 20 - - years table 8. dynamic character istic: external clock t amb = ? 40 c to +85 c; v dd(3v3) over specified ranges. [1] symbol parameter conditions min typ [2] max unit f osc oscillator frequency 1 - 25 mhz t cy(clk) clock cycle time 40 - 1000 ns t chcx clock high time t cy(clk) 0.4 - - ns t clcx clock low time t cy(clk) 0.4 - - ns t clch clock rise time - - 5 ns t chcl clock fall time - - 5 ns fig 10. external clock timing (wit h an amplitude of at least v i(rms) = 200 mv) t chcl t clcx t chcx t cy(clk) t clch 002aaa90 7
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 47 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 11.3 internal oscillators [1] parameters are valid over operating tem perature range unless otherwise specified. [2] typical ratings are not guaranteed. the va lues listed are at room temperature (25 c), nominal supply voltages. table 9. dynamic characteristic: internal oscillators t amb = ? 40 c to +85 c; 2.7 v v dd(3v3) 3.6 v. [1] symbol parameter conditions min typ [2] max unit f osc(rc) internal rc oscillator frequency - 3.96 4.00 4.04 mhz f i(rtc) rtc input frequency - - 32.768 - khz conditions: frequency values are typical values. 4 mhz 1 % accuracy is guaranteed for 2.7 v v dd(3v3) 3.6 v and t amb = ? 40 c to +85 c. variations between parts may cause the irc to fall outside the 4 mhz 1 % accuracy specification for voltages below 2.7 v. fig 11. internal rc oscillator frequency versus temperature 002aaf107 temperature ( c) ? 40 85 35 10 60 ? 15 4.024 4.032 4.020 4.028 4.036 f osc(rc) (mhz) 4.016 vdd(3v) = 3.6 v 3.3 v 3.0 v 2.7 v 2.4 v
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 48 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 11.4 i 2 c-bus [1] parameters are valid over operating tem perature range unless otherwise specified. [2] cclk = pclk = 20 mhz; i 2 c-bus interface configured in master mode. [3] bus capacitance c b in pf (50 pf), external pull-up resistance = 218 . 11.5 i 2 s-bus interface (l pc1768/67/66/65 only) [1] cclk = 20 mhz; peripheral clock to the i 2 s-bus interface pclk = cclk ? 4 ; i 2 s clock cycle time t cy(clk) = 1600 ns, corresponds to the sck signal in the i 2 s-bus specification . table 10. dynamic characteristic: i 2 c-bus pins (fast-mode plus) t amb = ? 40 c to +85 c; v dd(3v3) over specified ranges. [1] [2] [3] symbol parameter conditions min typ max unit f scl scl clock frequency - - 1 mhz t f fall time - - 45 ns t su;dat data set-up time - 50 - - ns fig 12. i 2 c-bus pins clock timing p s 002aae86 0 t su;dat t f sda scl table 11. dynamic characteristics: i 2 s-bus interface pins t amb = ? 40 c to +85 c. symbol parameter conditions min typ max unit common to input and output t r rise time [1] - - 35 ns t f fall time [1] - - 35 ns t wh pulse width high on pins i2stx_clk and i2srx_clk [1] 0.495 t cy(clk) - - - t wl pulse width low on pins i2stx_clk and i2srx_clk [1] - - 0.505 t cy(clk) ns output t v(q) data output valid time on pin i2stx_sda; [1] - - 30 ns on pin i2stx_ws [1] - - 30 ns input t su(d) data input set-up time on pin i2srx_sda [1] 3.5 - - ns t h(d) data input hold time on pin i2srx_sda [1] 4.0 - - ns
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 49 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller fig 13. i 2 s-bus timing (output) fig 14. i 2 s-bus timing (input) 002aad99 2 i2stx_clk i2stx_sda i2stx_ws t cy(clk) t f t r t wh t wl t v(q) t v(q) 002aae15 9 t cy(clk) t f t r t wh t su(d) t h(d) t su(d) t su(d) t wl i2srx_clk i2srx_sda i2srx_ws
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 50 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 11.6 ssp interface [1] the peripheral clock for ssp is pclk = cclk = 20 mhz. table 12. dynamic characteristi c: ssp interface t amb = 25 c; v dd(3v3) over specified ranges. symbol parameter conditions min typ max unit ssp interface t su(spi_miso) spi_miso set-up time measured in spi master mode; see figure 15 [1] 30 - ns fig 15. miso line set-up time in ssp master mode t su(spi_miso) sck shifting edges mosi miso 002aad32 6 sampling edges
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 51 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 11.7 usb interface (lpc1768/66/65/64 only) [1] characterized but not implemented as production test. guaranteed by design. table 13. dynamic characteris tics: usb pins (full-speed) c l = 50 pf; r pu = 1.5 k on d+ to v dd(3v3) , unless otherwise specified. symbol parameter conditions min typ max unit t r rise time 10 % to 90 % 8.5 - 13.8 ns t f fall time 10 % to 90 % 7.7 - 13.7 ns t frfm differential rise and fall time matching t r / t f - - 109 % v crs output signal crossover voltage 1.3 - 2.0 v t feopt source se0 interval of eop see figure 16 160 - 175 ns t fdeop source jitter for differential transition to se0 transition see figure 16 ? 2 - +5 ns t jr1 receiver jitter to next transition ? 18.5 - +18.5 ns t jr2 receiver jitter for paired transitions 10 % to 90 % ? 9 - +9 ns t eopr1 eop width at receiver must reject as eop; see figure 16 [1] 40 - - ns t eopr2 eop width at receiver must accept as eop; see figure 16 [1] 82 - - ns fig 16. differential da ta-to-eop transition skew and eop width 002aab561 t period differential data lines crossover point source eop width: t feopt receiver eop width: t eopr1 , t eopr2 crossover point extended differential data to se0/eop skew n t period + t fdeop
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 52 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 11.8 spi [1] t spicyc = (t cy(pclk) n) 0.5 %, n is the spi clock divider value (n 8); pclk is derived from the processor clock cclk. [2] timing parameters are measured with respect to the 50 % edge of the clock sck and the 10 % (90 %) edge of the data signal (mosi or miso). table 14. dynamic characteristics of spi pins t amb = ? 40 c to +85 c. symbol parameter min typ max unit t cy(pclk) pclk cycle time 10 - - ns t spicyc spi cycle time [1] 79.6 - - ns t spiclkh spiclk high time 0.485 t spicyc - - ns t spiclkl spiclk low time - 0.515 t spicyc ns spi master t spidsu spi data set-up time [2] 0 - - ns t spidh spi data hold time [2] 2 t cy(pclk) ? 5 - - ns t spiqv spi data output valid time [2] 2 t cy(pclk) + 30 - - ns t spioh spi output data hold time [2] 2 t cy(pclk) + 5 - - ns spi slave t spidsu spi data set-up time [2] 0 - - ns t spidh spi data hold time [2] 2 t cy(pclk) + 5 - - ns t spiqv spi data output valid time [2] 2 t cy(pclk) + 35 - - ns t spioh spi output data hold time [2] 2 t cy(pclk) + 15 - - ns fig 17. spi master timing (cpha = 1) sck (cpol = 0) mosi miso 002aad98 6 t spicyc t spiclkh t spiclkl t spidsu t spidh t spiqv data valid data valid t spioh sck (cpol = 1) data valid data valid
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 53 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller fig 18. spi master timing (cpha = 0) fig 19. spi slave timing (cpha = 1) sck (cpol = 0) mosi miso 002aad98 7 t spicyc t spiclkh t spiclkl t spidsu t spidh data valid data valid t spioh sck (cpol = 1) data valid data valid t spiqv sck (cpol = 0) mosi miso 002aad98 8 t spicyc t spiclkh t spiclkl t spidsu t spidh t spiqv data valid data valid t spioh sck (cpol = 1) data valid data valid
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 54 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 12. adc electrical characteristics [1] conditions: v ssa = 0 v, v dda = 3.3 v. [2] the adc is monotonic, there are no missing codes. [3] the differential linearity error (e d ) is the difference between the actual step width and the ideal step width. see figure 21 . [4] the integral non-linearity (e l(adj) ) is the peak difference between the center of the st eps of the actual and the ideal transfer curve after appropriate adjustment of gain and offset errors. see figure 21 . [5] the offset error (e o ) is the absolute difference between the straight line which fits the actual cu rve and the straight line which fits the ideal curve. see figure 21 . [6] the gain error (e g ) is the relative difference in percent between the straight line fitting the actual transfe r curve after removing offset error, and the straight line which fits the ideal transfer curve. see figure 21 . [7] the absolute error (e t ) is the maximum difference between the center of the st eps of the actual transfer curve of the non-calibrated adc and the ideal transfer curve. see figure 21 . fig 20. spi slave timing (cpha = 0) sck (cpol = 0) mosi miso 002aad98 9 t spicyc t spiclkh t spiclkl t spidsu t spidh t spiqv data valid data valid t spioh sck (cpol = 1) data valid data valid table 15. adc characteristics v dda = 2.7 v to 3.6 v; t amb = ? 40 c to +85 c unless otherwise specified; adc frequency 13 mhz. symbol parameter conditions min typ max unit v ia analog input voltage 0 - v dda v c ia analog input capacitance - - 15 pf e d differential linearity error [1] [2] [3] - - 1 lsb e l(adj) integral non-linearity [1] [4] - - 3 lsb e o offset error [1] [5] - 2 - lsb e g gain error [1] [6] - - 0.5 % e t absolute error [1] [7] - - 4 lsb f clk(adc) adc clock frequency - - 13 mhz f c(adc) adc conversion frequency - - 200 khz
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 55 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller (1) example of an actual transfer curve. (2) the ideal transfer curve. (3) differential linearity error (e d ). (4) integral non-linearity (e l(adj) ). (5) center of a step of the actual transfer curve. fig 21. 12-bit adc characteristics 002aad948 4095 4094 4093 4092 4091 (2) (1) 4096 4090 4091 4092 4093 4094 4095 7 123456 7 6 5 4 3 2 1 0 4090 (5) (4) (3) 1 lsb (ideal) code out vrefp ? vrefn 4096 offset error e o gain error e g offset error e o v ia (lsb ideal ) 1 lsb =
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 56 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 13. dac electrical characteristi cs (lpc1768/67/66/65 only) table 16. dac electrical characteristics v dda = 2.7 v to 3.6 v; t amb = ? 40 c to +85 c unless otherwise specified symbol parameter conditions min typ max unit e d differential linearity error - 1 - lsb e l(adj) integral non-linearity - 1.5 - lsb e o offset error - 0.6 - % e g gain error - 0.6 - % c l load capacitance - 200 - pf r l load resistance 1 - - k
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 57 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 14. application information 14.1 suggested usb interface solutions fig 22. lpc1768/66/65/64 usb inte rface on a self-powered device lpc17xx usb-b connector usb_d+ usb_connect softconnect switch usb_d ? v bus v ss v dd(3v3) r1 1.5 k r s = 33 002aad939 r s = 33 usb_up_led fig 23. lpc1768/66/65/64 usb interface on a bus-powered device lpc17xx v dd(3v3) r1 1.5 k r2 usb_up_led 002aad940 usb-b connector usb_d+ usb_d ? v bus v ss r s = 33 r s = 33
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 58 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller fig 24. lpc1768/66/65 usb otg port configuration usb_d+ usb_d ? usb_sda usb_scl rstout lpc17xx mini-ab connector 33 33 v dd v dd 002aad941 eintn reset_n adr/psw speed suspend oe_n/int_n scl sda int_n vbus id dp dm isp1302 v ss usb_up_led v dd fig 25. lpc1768/66/65 usb host port configuration usb_up_led usb_d+ usb_d ? usb_pwrd 15 k 15 k lpc17xx usb-a connector 33 33 002aad942 v dd usb_ovrcr usb_ppwr lm3526-l ena in 5 v flaga outa v dd d+ d ? v bus v ss
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 59 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 14.2 xtal1 input the input voltage to the on-chip oscillators is limited to 1.8 v. if the oscillator is driven by a clock in slave mode, it is recommended that th e input be coupled through a capacitor with c i = 100 pf. to limit the input voltage to the specified range, choose an additional capacitor to ground c g which attenuates the input voltage by a factor c i /(c i + c g ). in slave mode, a minimum of 200 mv (rms) is needed. for more details see the lpc17xx user manual. 14.3 xtal and rtcx printed circui t board (pcb) layout guidelines the crystal should be connected on the pcb as close as poss ible to the oscillator input and output pins of the chip. take care that the load capacitors c x1 , c x2 , and c x3 in case of third overtone crystal usage have a common ground plane. the external components must also be connected to the ground plain. loops must be made as small as possible in order to keep the noise coupled in via the pcb as small as possible. also parasitics should stay as small as possible. values of c x1 and c x2 should be chosen smaller accordingly to the increase in parasitics of the pcb layout. fig 26. lpc1768/66/65/64 usb device port configuration lpc17xx usb-b connector 33 33 002aad94 3 usb_up_led usb_connect v dd v dd d+ d ? usb_d+ usb_d ? v bus v bus v ss fig 27. slave mode operation of the on-chip oscillator lpc1xxx xtal1 c i 100 pf c g 002aae83 5
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 60 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 15. package outline fig 28. package outline sot407-1 (lqfp100) unit a max. a 1 a 2 a 3 b p ce (1) eh e ll p z y w v references outline version european projection issue date iec jedec jeita mm 1.6 0.15 0.05 1.45 1.35 0.25 0.27 0.17 0.20 0.09 14.1 13.9 0.5 16.25 15.75 1.15 0.85 7 0 o o 0.08 0.08 0.2 1 dimensions (mm are the original dimensions) note 1. plastic or metal protrusions of 0.25 mm maximum per side are not included. 0.75 0.45 sot407-1 136e20 ms-026 00-02-01 03-02-20 d (1) (1) (1) 14.1 13.9 h d 16.25 15.75 e z 1.15 0.85 d b p e e a 1 a l p detail x l (a ) 3 b 25 c d h b p e h a 2 v m b d z d a z e e v m a x 1 100 76 75 51 50 26 y pin 1 index w m w m 0 5 10 mm scale l qfp100: plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm sot407 -1
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 61 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 16. abbreviations table 17. abbreviations acronym description adc analog-to-digital converter ahb advanced high-performance bus amba advanced microcontroller bus architecture apb advanced peripheral bus bod brownout detection can controller area network dac digital-to-analog converter dcc debug communication channel dma direct memory access dsp digital signal processing eop end of packet etm embedded trace macrocell gpio general purpose input/output irc internal rc irda infrared data association jtag joint test action group mac media access control miim media independent interface management ohci open host controller interface otg on-the-go phy physical layer pll phase-locked loop pwm pulse width modulator rit repetitive interrupt timer rmii reduced media independent interface se0 single ended zero spi serial peripheral interface ssi serial synchronous interface ssp synchronous serial port tcm tightly coupled memory ttl transistor-transistor logic uart universal asynchronous receiver/transmitter usb universal serial bus
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 62 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 17. revision history table 18. revision history document id release date data sheet status change notice supersedes lpc1768_67_66_65_64_3 20091119 product data sheet - lpc1768_66_65_64_2 modifications: ? changed data sheet status to product data sheet. ? added part lpc1767. ? maximum data bit rate for spi, ssp, uart added. ? rtc backup ram size updated (20 bytes). ? wdt clock source added: rtc oscillator. ? table 14 ? dynamic characteristics of spi pins ? updated. ? adc conversion rate changed to 200 khz. ? updated motor contro l pwm pin names in table 3 ? pin description ? and figure 1 ? block diagram ? . ? v dda and vrefp pin descriptions updated ( ta b l e 3 ). ? v esd changed to 4000 v ( table 4 ). ? power consumption data added to ta b l e 6 . ? flash characteristics table updated ( table 7 ). ? i 2 c-bus timing characteristics updated ( ta b l e 10 ). ? i 2 s-bus timing characteristics updated ( table 11 ). ? added section 10.1 ? electrical pin characteristics ? . ? changed v i to 5.5 v (max) in table 4 . ? changed v i to 5.0 v (max) in table 6 . ? table 15 ? adc characteristics ? updated. ? dac electrical characteristics updated ( ta b l e 16 ). ? section 14.2 ? xtal1 input ? and section 14.3 ? xtal and rtcx printed circuit board (pcb) layout guidelines ? ) added. ? removed symbols from timing diagram ( figure 12 ). ? updated figure 3 ? lpc17xx memory map ? . lpc1768_66_65_64_2 20090211 objective data sheet - lpc1768_66_65_64_1 lpc1768_66_65_64_1 20090115 objective data sheet - -
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 63 of 65 nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 18. legal information 19. data sheet status [1] please consult the most recently issued document before initiating or completing a design. [2] the term ?short data sheet? is explained in section ?definitions?. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple device s. the latest product status information is available on the internet at url http://www.nxp.com . 19.1 definitions draft ? the document is a draft versi on only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall hav e no liability for the consequences of use of such information. short data sheet ? a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request vi a the local nxp semiconductors sales office. in case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. 19.2 disclaimers general ? information in this document is believed to be accurate and reliable. however, nxp semiconductors d oes not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. right to make changes ? nxp semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use ? nxp semiconductors products are not designed, authorized or warranted to be suitable for use in medical, military, aircraft, space or life support equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer?s own risk. applications ? applications that are described herein for any of these products are for illustrative purpos es only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. limiting values ? stress above one or more limiting values (as defined in the absolute maximum ratings system of iec 60134) may cause permanent damage to the device. limiting values are stress ratings only and operation of the device at these or any other conditions above those given in the characteristics sections of this document is not implied. exposure to limiting values for extended periods may affect device reliability. terms and conditions of sale ? nxp semiconductors products are sold subject to the general terms and condit ions of commercial sale, as published at http://www.nxp.com/profile/terms , including those pertaining to warranty, intellectual property rights infringement and limitation of liability, unless explicitly otherwise agreed to in writ ing by nxp semiconductors. in case of any inconsistency or conflict between information in this document and such terms and conditions, the latter will prevail. no offer to sell or license ? nothing in this document may be interpreted or construed as an offer to sell products t hat is open for acceptance or the grant, conveyance or implication of any lic ense under any copyrights, patents or other industrial or intellectual property rights. export control ? this document as well as the item(s) described herein may be subject to export control regulations. export might require a prior authorization from national authorities. 19.3 trademarks notice: all referenced brands, produc t names, service names and trademarks are the property of their respective owners. i 2 c-bus ? logo is a trademark of nxp b.v. 20. contact information for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com document status [1] [2] product status [3] definition objective [short] data sheet development this document contains data from the objec tive specification for product development. preliminary [short] data sheet qualification this document contains data from the preliminary specification. product [short] data sheet production this document contains the product specification.
lpc1768_67_66_65_64_3 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 03 ? 19 november 2009 64 of 65 continued >> nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller 21. contents 1 general description . . . . . . . . . . . . . . . . . . . . . . 1 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 ordering information . . . . . . . . . . . . . . . . . . . . . 4 4.1 ordering options . . . . . . . . . . . . . . . . . . . . . . . . 4 5 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 5 6 pinning information . . . . . . . . . . . . . . . . . . . . . . 6 6.1 pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 6.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . 6 7 functional description . . . . . . . . . . . . . . . . . . 15 7.1 architectural overview . . . . . . . . . . . . . . . . . . 15 7.2 arm cortex-m3 processor . . . . . . . . . . . . . . . 15 7.3 on-chip flash program memory . . . . . . . . . . . 15 7.4 on-chip sram . . . . . . . . . . . . . . . . . . . . . . . . 15 7.5 memory protection unit (mpu). . . . . . . . . . . . 15 7.6 memory map. . . . . . . . . . . . . . . . . . . . . . . . . . 16 7.7 nested vectored interrupt controller (nvic) . 18 7.7.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7.7.2 interrupt sources. . . . . . . . . . . . . . . . . . . . . . . 18 7.8 pin connect block . . . . . . . . . . . . . . . . . . . . . . 18 7.9 general purpose dma controller . . . . . . . . . . 18 7.9.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 7.10 fast general purpose parallel i/o . . . . . . . . . . 19 7.10.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.11 ethernet (lpc1768/67/66/64 only) . . . . . . . . . 20 7.11.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.12 usb interface (lpc1768/66/65/64 only) . . . . 21 7.12.1 usb device controller . . . . . . . . . . . . . . . . . . . 21 7.12.1.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 7.12.2 usb host controller (lpc1768/66/65 only). . . 22 7.12.2.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.12.3 usb otg controller (lpc1768/66/65 only) . . 22 7.12.3.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.13 can controller and acceptance filters (lpc1768/66/65/64 only) . . . . . . . . . . . . . . . . 22 7.13.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 7.14 12-bit adc . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 7.14.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 7.15 10-bit dac (lpc1768/67/66/65 only) . . . . . . . 23 7.15.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 7.16 uarts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 7.16.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 7.17 spi serial i/o controller. . . . . . . . . . . . . . . . . . 24 7.17.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 7.18 ssp serial i/o controller . . . . . . . . . . . . . . . . . 24 7.18.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.19 i 2 c-bus serial i/o controllers. . . . . . . . . . . . . . 25 7.19.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.20 i 2 s-bus serial i/o controllers . . . . . . . . . . . . . 25 7.20.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 7.21 general purpose 32-bit timers/external event counters . . . . . . . . . . . . . . . . . . . . . . . . 26 7.21.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 7.22 pulse width modulator . . . . . . . . . . . . . . . . . . 27 7.22.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 7.23 motor control pwm . . . . . . . . . . . . . . . . . . . . 28 7.24 quadrature encoder interface (qei) . . . . . . . 28 7.24.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.25 repetitive interrupt (ri) timer. . . . . . . . . . . . . 29 7.25.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 7.26 arm cortex-m3 system tick timer . . . . . . . . . 29 7.27 watchdog timer . . . . . . . . . . . . . . . . . . . . . . . 29 7.27.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 7.28 rtc and backup registers . . . . . . . . . . . . . . . 30 7.28.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.29 clocking and power control . . . . . . . . . . . . . . 30 7.29.1 crystal oscillators. . . . . . . . . . . . . . . . . . . . . . 30 7.29.1.1 internal rc oscillator . . . . . . . . . . . . . . . . . . . 31 7.29.1.2 main oscillator . . . . . . . . . . . . . . . . . . . . . . . . 31 7.29.1.3 rtc oscillator . . . . . . . . . . . . . . . . . . . . . . . . 31 7.29.2 main pll (pll0) . . . . . . . . . . . . . . . . . . . . . . 32 7.29.3 usb pll (pll1) . . . . . . . . . . . . . . . . . . . . . . 32 7.29.4 rtc clock output . . . . . . . . . . . . . . . . . . . . . . 32 7.29.5 wake-up timer . . . . . . . . . . . . . . . . . . . . . . . . 32 7.29.6 power control . . . . . . . . . . . . . . . . . . . . . . . . . 33 7.29.6.1 sleep mode . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7.29.6.2 deep-sleep mode. . . . . . . . . . . . . . . . . . . . . . 33 7.29.6.3 power-down mode . . . . . . . . . . . . . . . . . . . . . 34 7.29.6.4 deep power-down mode . . . . . . . . . . . . . . . . 34 7.29.6.5 wakeup interrupt controller . . . . . . . . . . . . . . 34 7.29.7 peripheral power control . . . . . . . . . . . . . . . . 34 7.29.8 power domains . . . . . . . . . . . . . . . . . . . . . . . 35 7.30 system control . . . . . . . . . . . . . . . . . . . . . . . . 36 7.30.1 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.30.2 brownout detection . . . . . . . . . . . . . . . . . . . . 37 7.30.3 code security (code read protection - crp) 37 7.30.4 apb interface . . . . . . . . . . . . . . . . . . . . . . . . . 37 7.30.5 ahb multilayer matrix . . . . . . . . . . . . . . . . . . 38 7.30.6 external interrupt inputs . . . . . . . . . . . . . . . . . 38 7.30.7 memory mapping control . . . . . . . . . . . . . . . . 38 7.31 emulation and debugging . . . . . . . . . . . . . . . 38 8 limiting values . . . . . . . . . . . . . . . . . . . . . . . . 39 9 thermal characteristics . . . . . . . . . . . . . . . . . 40 10 static characteristics . . . . . . . . . . . . . . . . . . . 41
nxp semiconductors lpc1768/67/66/65/64 32-bit arm cortex-m3 microcontroller ? nxp b.v. 2009. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please se nd an email to: salesaddresses@nxp.com date of release: 19 november 2009 document identifier: lpc1768_67_66_65_64_3 please be aware that important notices concerning this document and the product(s) described herein, have been included in section ?legal information?. 10.1 electrical pin characteristics . . . . . . . . . . . . . . 44 11 dynamic characteristics . . . . . . . . . . . . . . . . . 46 11.1 flash memory . . . . . . . . . . . . . . . . . . . . . . . . . 46 11.2 external clock . . . . . . . . . . . . . . . . . . . . . . . . . 46 11.3 internal oscillators. . . . . . . . . . . . . . . . . . . . . . 47 11.4 i 2 c-bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 11.5 i 2 s-bus interface (lpc1768/67/66/65 only) . . 48 11.6 ssp interface . . . . . . . . . . . . . . . . . . . . . . . . . 50 11.7 usb interface (lpc1768/66/65/64 only) . . . . 51 11.8 spi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 12 adc electrical characteristics . . . . . . . . . . . . 54 13 dac electrical ch aracteristics (lpc1768/67/66/65 only) . . . . . . . . . . . . . . . . . 56 14 application information. . . . . . . . . . . . . . . . . . 57 14.1 suggested usb interface so lutions . . . . . . . . 57 14.2 xtal1 input . . . . . . . . . . . . . . . . . . . . . . . . . . 59 14.3 xtal and rtcx printed circuit board (pcb) layout guidelines . . . . . . . . . . . . . . . . . 59 15 package outline . . . . . . . . . . . . . . . . . . . . . . . . 60 16 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . 61 17 revision history . . . . . . . . . . . . . . . . . . . . . . . . 62 18 legal information. . . . . . . . . . . . . . . . . . . . . . . 63 19 data sheet status . . . . . . . . . . . . . . . . . . . . . . 63 19.1 definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 19.2 disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 19.3 trademarks. . . . . . . . . . . . . . . . . . . . . . . . . . . 63 20 contact information. . . . . . . . . . . . . . . . . . . . . 63 21 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64


▲Up To Search▲   

 
Price & Availability of LPC67

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X